This is a deprecated version of the SnowConvert documentation, please visit the official site HEREarrow-up-right.
Process the day of the week a timestamp belongs to. It has the same behavior as the DAYNUMBER_OF_WEEK(DATE, 'COMPATIBLE') function.
DAYNUMBER_OF_WEEK(DATE, 'COMPATIBLE')
PUBLIC.TD_DAY_OF_WEEK_COMPATIBLE_UDF(INPUT TIMESTAMP_TZ)
INPUT TIMESTAMP_TZ
INPUT
The date to get the day of the week from.
Returns an integer between 1 and 7 where if January first is Wednesday then, 1 equals Wednesday, 2 equals Thursday... 7 equals Tuesday, and so on.
Input:
Output:
Last updated 1 year ago
SELECT PUBLIC.TD_DAY_OF_WEEK_COMPATIBLE_UDF(DATE '2022-01-01'), PUBLIC.TD_DAY_OF_WEEK_COMPATIBLE_UDF(DATE '2023-05-05');
1, 6