YEAR_PART_UDF
Definition
Process the year from a given date truncated to the specified number of digits.
Parameters
INPUT
TIMESTAMP_TZ
The date to take the year from.
DIGITS
INTEGER
The amount of digits wanted in the result.
Returns
Returns the year from a given date.
Usage example
Input:
Output:
Last updated