Learn
Drivers
Downloads
Community
Blog
OPTIONS
Version
Select Version
3.0 (current)
2.6
2.4
2.2
Formats
HTML
PDF
EPUB
Contribute
Report a Problem
Edit on Github
Reference
>
Operators
>
Aggregation Framework Operators
>
Date Aggregation Operators
>
$year (aggregation)
$year (aggregation)
¶
$year
¶
Takes a date and returns the full year.
←
$dayOfWeek (aggregation)
$month (aggregation)
→
ON THIS PAGE
$year (aggregation)
Report a Problem