-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
(copied to CRM)
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..
- duplicates
-
SERVER-16347 Support for date aggregation operator for creating dates from parts
- Closed
- is related to
-
SERVER-11118 Add dateToString aggregation operator
- Closed
-
SERVER-10651 Aggregation expressions to add/subtract Years/Quarters/Months
- Closed