Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get docs with date intervals mongoose

db.posts.find({ //query today up to tonight
    created_on: {
        $gte: new Date(2012, 7, 14), 
        $lt: new Date(2012, 7, 15)
    }
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #docs #date #intervals #mongoose
ADD COMMENT
Topic
Name
4+7 =