mongoose查询特定时间段文档的方法

1 db.collection.find({
2   time:{
3     "$gte": new Date('2014-01-24'),
4     "$lte":new Date('2014-01-25')
5   }
6 })

 

posted @ 2016-01-22 15:49  挥刀  阅读(2130)  评论(0编辑  收藏  举报