Type: Function
Function: BEGINNING_OF_YEAR
Syntax: BEGINNING_OF_YEAR(datetime)
Description: Returns a datetime corresponding to the beginning of year for the provided datetime or NOW if no value is provided.
Sample usage:
BEGINNING_OF_YEAR(created_at)returns thecreated_atfield value set at midnight on the first day of the year. Ifcreated_atis equal to2023-02-23T15:39:21ZthenBEGINNING_OF_YEAR(created_at)returns2023-01-01T00:00:00Z.BEGINNING_OF_YEAR()is equal toBEGINNING_OF_YEAR(NOW())=>BEGINNING_OF_YEAR(DATE(2023, 3, 15))is equal toDATE(2023, 1, 1)
