Skip to main content

$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

Result: 2023

Extract Year from Field

Result: The year component of the birth_date field