Description
Returns the year from a datetime expression.Syntax
GetYear(datetime_expression)
Examples
GetYear(ToDate('2012-12-31T08:02:31.667Z')) returns 2012
Extract the year component from a datetime expression. Use GETYEAR for annual aggregations, filtering, and date partitioning in ETL pipelines.
GetYear(datetime_expression)
GetYear(ToDate('2012-12-31T08:02:31.667Z')) returns 2012
Was this page helpful?