Mongodb provides lots of 'Date Aggregation Operators
' such as $dayOfYear
, $dayOf Month
, and $millisecond
. The $millisecond
function just returns the milliseconds of the time stamp with a range of 0-999.
Is there a way to access a Date
object as milliseconds since epoch in aggregation pipeline?
Thanks,
Nathan