Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

search by date interval 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: #search #date #interval #mongoose
ADD COMMENT
Topic
Name
8+1 =