DATE_PART
Return subfields such as year or hour from date or timestamp values.
Syntax
DATE_PART(field string, source date or timestamp) → integer
field: Must be one of the following: YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND.
source: The value from which to extract the subfield.
Examples
DATE_PART example
DATE_PART example
Last updated