In MongoDB, the $isoWeek
aggregation pipeline operator returns the week number in ISO 8601 format, ranging from 1
to 53
.
When using the $isoWeek
operator, you can optionally specify a timezone to use for the result.
The $isoWeek
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.