Add option to $dayOfWeek to choose between Monday and Sunday
Hi!
I was wondering if you could add an optional parameter to $dayOfWeek that allows you to choose on which day you want the functionality to start counting.
Thanks!
1
vote
Lucía
shared this idea
-
Wernfried commented
If you like to have Monday as first day of week, then simply use '$isoDayOfWeek'
https://www.mongodb.com/docs/v5.0/reference/operator/aggregation/isoDayOfWeek/