Built-in Functions → yearMonth
yearMonth() is a scalar date function that returns the current year and month as an integer. In the returned value, the first four digits represent the year while the last two digits represent the month.
Note
This function is available starting with release 2024.1.0.
Signature
yearMonth()
Returns
int
Example
Obtain the current year and month given that the current date is 25 April 2024.
Function | Result |
---|---|
yearMonth() | 202404 . |