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

Aggregation Framework needs to support more date conversion functions like date portion, or time portion of date type

      It would be very useful to have additional date conversion operators that would take a Date and return a date that only includes the date portion (time portion would be 0). Likewise for a getting the time of the day without the date.

      Currently it is not possible (or at least not easily done) to group on the date of a Date field and have the date returned to the pipeline.

      This wouldn't be too difficult to workaround if we could $divide a date, and then group on it, but it's not supported.

      Other possible conversions may be nice like converting a Date to a Long, etc..

            Assignee:
            benjamin.murphy Benjamin Murphy
            Reporter:
            gjroylance Gordon Roylance
            Votes:
            9 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved: