Description
Returns the year from a datetime expression.
Syntax
GetYear(datetime_expression)
Examples
GetYear(ToDate('2012-12-31T08:02:31.667Z'))
returns 2012
Return value datatype
Integer
Impact of null value
If input is null, returns null.
Returns the year from a datetime expression.
GetYear(datetime_expression)
GetYear(ToDate('2012-12-31T08:02:31.667Z'))
returns 2012
Integer
If input is null, returns null.
Free 7-day trial. Easy setup. Cancel any time