[SERVER-53388] Week start parameter for $dateDiff aggregation expression Created: 16/Dec/20  Updated: 29/Oct/23  Resolved: 11/Feb/21

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Improvement Priority: Major - P3
Reporter: Mindaugas Malinauskas Assignee: Mindaugas Malinauskas
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Documented
is documented by DOCS-14215 Investigate changes in SERVER-53388: ... Closed
Related
related to SERVER-51663 Implement $dateDiff in DocumentSource... Closed
Backwards Compatibility: Minor Change
Sprint: Query 2021-01-25, Query Execution 2021-02-22
Participants:

 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.



 Comments   
Comment by Githook User [ 11/Feb/21 ]

Author:

{'name': 'Mindaugas Malinauskas', 'email': 'mindaugas.malinauskas@mongodb.com'}

Message: SERVER-53388 Week start parameter for $dateDiff aggregation expression
Branch: master
https://github.com/mongodb/mongo/commit/e9b02873749f2331f1853d00e13c8a67b39bf53a

Generated at Thu Feb 08 05:30:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.