Built-in Functions → yearQuarter

yearQuarter() is a scalar date function that returns the current year and quarter as an integer. In the returned value, the first four digits represent the year while the last two digits represent the quarter.

Note

This function is available starting with release 2024.1.0.

Signature

yearQuarter()

Returns

int

Example

Obtain the current year and quarter given that the current date is 25 April 2024.

FunctionResult
yearQuarter()202402.