Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
aggregation calculations involving dates. want to floor the date to the first of month in a project stage..
*Location*: https://docs.mongodb.com/manual/reference/operator/aggregation-date/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
*Referrer*: https://www.google.co.za/
*Screen Resolution*: 1920 x 1080
aggregation calculations involving dates. want to floor the date to the first of month in a project stage.. *Location*: https://docs.mongodb.com/manual/reference/operator/aggregation-date/ *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 *Referrer*: https://www.google.co.za/ *Screen Resolution*: 1920 x 1080
Description
We really really need a dateToMilisecond function or some way to calculate the number of time passed to current date. To multiply by years, months, ... creates problems with leap years etc. Would be really simple to just get the time in miliseconds from epoc time for date calculation purposes during aggregations..