Database

[{"direction":0,"metrictimestamp":{"$date":"2018-02-01T02:59:55.000Z"},"odometer":19030291,"routecode":0,"speed":0,"deviceid":8155064,"vehicleid":34489,"location":{"type":"Point","coordinates":[-3.878595,-38.533493]}}]

Query

db.collection.aggregate([{"$match":{"metrictimestamp":{"$gte":ISODate("2018-02-01T00:00:00Z"),"$lte":ISODate("2018-02-01T23:59:59Z")}}}])

Result