mongodb使用本地日期查询

db.getCollection('userLog').find({createAt:{"$gt":new Date("2018-08-05"),"$lt":new Date("2018-8-06")}})

 

posted @ 2018-08-07 15:21  yudis  阅读(1195)  评论(0编辑  收藏  举报