YEAR_BEGIN_ISO_UDF
This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.
Definition
UDF that reproduces the TD_YEAR_BEGIN(Date, 'ISO') functionality. It depends on the DAYOFWEEKISO
of PUBLIC.FIRST_DAY_JANUARY_OF_ISO_UDF
add or subtraction days to find the Monday closer to PUBLIC.FIRST_DAY_JANUARY_OF_ISO_UDF
.
Parameters
INPUT
TIMESTAMP_TZ
The date to get the first day of the year using the ISO calendar.
Returns
The first day of the year using the ISO calendar.
Usage example
Input:
Output:
Last updated