📌  相关文章
📜  检查两个日期之间的日期nodejs - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:37.386000             🧑  作者: Mango

代码示例3
let startDate = new Date('2021-12-02');
let endDate = new Date('2021-12-30');
let checkDate = new Date('2021-12-31');
if(startDate <= checkDate && endDate >= checkDate){
    console.log(123);
} else {
    console.log(456);
}
//$uj@y