Details
-
Task
-
Resolution: Fixed
-
Major - P3
-
None
-
None
Description
Description
$dateDiff function has been improved to support startOfWeek parameter that accepts English names or three letter abbreviations of days of a week. If the parameter is not specified, then a default of "Sunday" is used as opposed to "Monday" (previous behaviour).
Description of Linked Ticket
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.
Scope of changes
Impact to Other Docs
MVP (Work and Date)
Resources (Scope or Design Docs, Invision, etc.)
Attachments
Issue Links
- documents
-
SERVER-53388 Week start parameter for $dateDiff aggregation expression
-
- Closed
-