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

Week start parameter for $dateDiff aggregation expression

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • Querying
    • None
    • Minor Change
    • 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

        Activity

          People

            mindaugas.malinauskas@mongodb.com Mindaugas Malinauskas
            mindaugas.malinauskas@mongodb.com Mindaugas Malinauskas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: