DB
FunctionsDate & Time

to_year

Extracts the year component from a date or timestamp and returns it as an integer.

to_year(…) → Int64

Kind · scalar

Extracts the year component from a date or timestamp and returns it as an integer.

Part of the Date & Time family.