[DOCS-14215] Investigate changes in SERVER-53388: Week start parameter for $dateDiff aggregation expression Created: 11/Feb/21  Updated: 13/Nov/23  Resolved: 01/Apr/21

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.9.0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Dave Cuthbert (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-53388 Week start parameter for $dateDiff ag... Closed
Participants:
Days since reply: 2 years, 44 weeks, 6 days ago
Epic Link: DOCSP-9747
Story Points: 2

 Description   

Description

Downstream Change Summary

$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.)



 Comments   
Comment by Githook User [ 01/Apr/21 ]

Author:

{'name': 'Dave Cuthbert', 'email': 'dave.cuthbert@mongodb.com', 'username': 'davemungo'}

Message: DOCS-14215 add dateDiff and update week start
Branch: v5.0
https://github.com/mongodb/docs/commit/763074d579da6ac72b38e47dd8377a7003a55701

Generated at Thu Feb 08 08:09:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.