Add startOfWeek parameter to $dateDiff.
The startOfWeek parameter denotes the starting position to use when the unit in $dateDiff is equal to "week".
The accepted value can be a case-insensitive string which resolves to any of the following options: (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday). By default "Sunday" is considered the start of the week.
- related to
-
SERVER-51663 Implement $dateDiff in DocumentSource execution
-
- Closed
-