Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-53388

Week start parameter for $dateDiff aggregation expression

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0
    • Component/s: Querying
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change
    • Sprint:
      Query 2021-01-25, Query Execution 2021-02-22

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mindaugas.malinauskas Mindaugas Malinauskas
              Reporter:
              mindaugas.malinauskas Mindaugas Malinauskas
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: