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

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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0
    • Component/s: manual, Server
    • Labels:
      None

      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

          Issue Links

            Activity

              People

              Assignee:
              dave.cuthbert Dave Cuthbert
              Reporter:
              backlog-server-pm Backlog - Core Eng Program Management Team
              Participants:
              Last commenter:
              Dave Cuthbert Dave Cuthbert
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                3 weeks ago
                Date of 1st Reply: