Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14215

Investigate changes in SERVER-53388: Week start parameter for $dateDiff aggregation expression

    XMLWordPrintableJSON

Details

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

      Attachments

        Activity

          People

            dave.cuthbert@mongodb.com Dave Cuthbert (Inactive)
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              2 years, 44 weeks, 6 days ago