In PostgreSQL, the date_trunc() function truncates a date/time value to a specified precision.
It can also truncate the value to a specified precision in a specified time zone.
You could think of it as a date version of the trunc() function (which truncates numbers).