Details
Description
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.
Attachments
Issue Links
- is documented by
-
DOCS-14215 Investigate changes in SERVER-53388: Week start parameter for $dateDiff aggregation expression
-
- Closed
-
- related to
-
SERVER-51663 Implement $dateDiff in DocumentSource execution
-
- Closed
-