DATE_PART
Date function
Last updated
Date function
Last updated
DATE_PART extracts date part values from an expression. DATE_PART is a synonym of the PGDATE_PART function.
()
Valid in Snowflake for DATE_PART
:
second, seconds
minute, minutes
hour, hours
day, days
week
dayofweek
dayofyear
month, months
quarter, quarters
year, years
epoch
Invalid formats in Snowflake for DATE_PART
:
microsecond, microseconds
millisecond, milliseconds
weeks
decade, decades
century, centuries
millennium, millennia
No issues were found.
This function is partially supported by .
: The current date/numeric format may have a different behavior in Snowflake.