DATE_DIFF
Date function
Description
DATEDIFF returns the difference between the date parts of two date or time expressions.
Valid datepart
in Snowflake for DATE_DIFF
:
microsecond, microseconds
millisecond, milliseconds
second, seconds
minute, minutes
hour, hours
day, days
week
month, months
quarter, quarters
year, years
Unsupported formats in Snowflake for DATEDIFF
:
decade, decades
century, centuries
millennium, millennia
Grammar Syntax
This function is fully supported in Snowflake.
Sample Source Patterns
Input Code:
IN -> Redshift_01.sql
Output Code:
OUT -> Redshift_01.sql
Know Issues
No issues were found.
Related EWIs
There are no known issues.
Last updated