以下是MongoDB查询语句:

db.collection.find({
    "status.operStartTime": {
        $gte: ISODate("2022-03-18T15:00:00.000Z"),
        $lte: ISODate("2022-04-17T17:30:00.000Z")
    }
})

请注意,要将查询条件中的日期时间转换为ISO格式,并将其作为参数传递给ISODate函数。此外,您需要使用MongoDB的比较运算符$gte$lte来指定查询范围。

MongoDB查询字段名为statusoperStartTime为3月18日到4月17日内每天1500到1730的数据

原文地址: https://www.cveoy.top/t/topic/cEsp 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录