Date Truncate Function
Trim date and time values to a specified precision.
Last updated
> select trunc(date '2022-09-03', 'month');
2022-09-01T00:00:00.000+00:00 > select trunc(timestamp '2022-09-03 12:04:08' , 'hour');
2022-09-03T12:00:00.000+00:00