i am working on aggregation of mongodb collection.my mongodb collection has creation_time in timestamp.How will i can collect same day result and aggregate with next day res
In my case , I used
db.collection.aggregate([ { "$project": { "date": { "$toDate": { $multiply:["$_id",1000 ] } } }} ])
convert timestamp from milliseconds to seconds.