Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

query date range in mongodb

db.collection.find({
    day: {
        $gt: ISODate("2020-01-21"),
        $lt: ISODate("2020-01-24")
    }
})
 
PREVIOUS NEXT
Tagged: #query #date #range #mongodb
ADD COMMENT
Topic
Name
7+3 =