DATE_TRUNC
Truncates a date and time to the start of the year, month, week, day or hour.
Syntax
DATE_TRUNC('<unit>', <timestamp>)
Drops everything smaller than the given unit: 'month' turns any moment of a month into its first day at 00:00. Units: 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute'. Most often used to group data by month or day.