1 db.collection.find({ 2 time:{ 3 "$gte": new Date(‘2014-01-24‘), 4 "$lte":new Date(‘2014-01-25‘) 5 } 6 })
mongoose查询特定时间段文档的方法
原文:http://www.cnblogs.com/suoking/p/5151501.html