In MongoDB, the $isoWeekYear
aggregation pipeline operator returns the ISO week-numbering year for a given date value. This is the year number in ISO 8601 format.
When using the $isoWeekYear
operator, you can optionally specify a timezone to use for the result.
The $isoWeekYear
operator accepts either a date (as either a Date, a Timestamp, or an ObjectId), or a document that specifies the date and timezone to use.