MongoDB comparing dates only without times - Stack Overflow


PHOTO EMBED

Wed Dec 30 2020 09:02:38 GMT+0000 (UTC)

Saved by @ali_alaraby

db.collection.find({
  "date" : {"$gte": new Date("2015-07-07T00:00:00.000Z"),
            "$lt": new Date("2015-07-08T00:00:00.000Z")}
})
content_copyCOPY

https://stackoverflow.com/questions/31272471/mongodb-comparing-dates-only-without-times