Type: Function
Function: BEGINNING_OF_DAY
Syntax: BEGINNING_OF_DAY(datetime)
Description: Returns a datetime corresponding to the beginning of day for the provided datetime or NOW if no value is provided.
Sample usage:
BEGINNING_OF_DAY(created_at)returns thecreated_atfield value set at midnight the same day. Ifcreated_atis equal to2023-02-23T15:39:21ZthenBEGINNING_OF_DAY(created_at)returns2023-02-23T00:00:00Z.BEGINNING_OF_DAY()is equal toBEGINNING_OF_DAY(NOW())
