TD_DAY_OF_WEEK_UDF
This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.
Definition
User-defined function (UDF) that reproduces the equivalent functionality of Teradata's TD_DAY_OF_WEEK
. More information about the source function is here.
Parameters
INPUT
TIMESTAMP_TZ
Date to get the day of the week from.
Returns
An integer between 1 and 7 where 1 is Sunday, 2 is Monday, 3 is Tuesday, ..., 7 is Saturday.
Migration example
Input:
Output:
Last updated