This is a deprecated version of the SnowConvert documentation, please visit the official site HEREarrow-up-right.
User-defined function (UDF) that reproduces the functionality of Teradata's TO_DAY_OF_CALENDAR
TO_DAY_OF_CALENDAR
PUBLIC.TD_DAY_OF_CALENDAR_UDF(INPUT TIMESTAMP_TZ)
INPUT TIMESTAMP_TZ
INPUT
Date to which the number of days since 1900-01-01 will be counted.
An integer that represents the number of days elapsed from 1900-01-01 to INPUT
Input:
Output:
Last updated 1 year ago
SELECT td_day_of_calendar(current_date)
SELECT PUBLIC.TD_DAY_OF_CALENDAR_UDF(CURRENT_DATE()) /*** MSC-WARNING - MSCEWI1020 - CUSTOM UDF 'TD_DAY_OF_CALENDAR_UDF' INSERTED. ***/;