mongodb使用本地日期查询

db.getCollection('userLog').find({createAt:{"$gt":new Date("2018-08-05"),"$lt":new Date("2018-8-06")}})
原文地址:https://www.cnblogs.com/yudis/p/9437235.html