$year
The$year operator extracts the year component from a date object.
Input
- A single date object
Output
- The year component of the date as an integer
Examples
Extract Year from Date
2023
$year operator extracts the year component from a date object.
2023