DATE_PART
Date function
Description
DATE_PART extracts date part values from an expression. DATE_PART is a synonym of the PGDATE_PART function.
Valid datepart
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
Grammar Syntax
This function is partially supported by Snowflake.
Sample Source Patterns
Input Code:
IN -> Redshift_01.sql
Output Code:
OUT -> Redshift_01.sql
Know Issues
No issues were found.
Related EWIs
SSC-EWI-PGOOO5: The current date/numeric format may have a different behavior in Snowflake.
Last updated