Type: Function
Function: END_OF_WEEK
Syntax: END_OF_WEEK(datetime)
Description: Return a datetime corresponding to the end of week for the provided datetime or NOW if no value is provided.
Sample usage:
END_OF_WEEK(created_at)returns thecreated_atfield value set at 23h59m59s on the last day of the week. Ifcreated_atis equal to2023-02-23T15:39:21ZthenEND_OF_WEEK(created_at)returns2023-02-26T23:59:59Z.END_OF_WEEK()is equal toEND_OF_WEEK(NOW())
