Truncate the date to the specified date part, e.g.”month”.
precision (required) Smallest date part to preserve, chosen from “year”, “month”, “week”, “day”, “hour”, “minute”, and “second”.
date (required) Date to be truncated.
timezone (optional) Name of IANA timezone to get the date part at, e.g.”America/Los_Angeles”. When calculating a timezone, input dates are treated as UTC.
Date functions are useful for analyzing date input and extracting individual time components, like year or minute, from date objects.