Library
Compass SQL Reference
Datetime functions
YEAR
YEAR
Use YEAR to return the year from a date expression.
Syntax
YEAR(date_expression)