我如何在日期或时间范围内搜索



我想为某些本地商店创建新的数据模型,该对象将存储季节性(开放日期,截止日期(和(开放时间,关闭时间(

我需要像这样存储数据

{
    "open_date": {
        "from": "19/10", // like 19/10/2017, 19/10/2018 
        "to": "29/3" // like 29/2/2018, 29/2/2019
    },
    "open_time": {
        "from": "08:00:00", 
        "to": "17:30:00" 
    }
}

我现在想检查开业商店(当前日期/时间是:" 2019-07-08 11:36:51"(

尝试此

    "open_date": {
        "from": "now/d", 
        "to": "now/d"
    },
    "open_time": {
        "from": "now/s", 
        "to": "now/s" 
    }

最新更新