Skip to main content
Date-truncation functions return the start of the period that contains a date.

startofday

Returns the start of the day.

startofweek

Returns the Monday at the start of the week.

startofmonth

Returns the first day of the month.

startofquarter

Returns the first day of the calendar quarter.

startofhalf

Returns January 1 or July 1 for the half-year containing the date.

startofyear

Returns January 1 of the year. These functions are useful when source dates must be aligned with a model period.