Type: Function
Function: END_OF_YEAR
Syntax: END_OF_YEAR(datetime)
Description: Return a datetime corresponding to the end of year for the provided datetime or NOW if no value is provided.
Sample usage:
- END_OF_YEAR(created_at)returns the- created_atfield value set at 23h59m59s on the last day of the year. If- created_atis equal to- 2023-02-23T15:39:21Zthen- END_OF_YEAR(created_at)returns- 2023-12-31T23:59:59Z.
- END_OF_YEAR()is equal to- END_OF_YEAR(NOW())=>- 2021-12-31or- 2022-12-31or- 2023-12-31

