js判断是否在某个日期内uniapp
//判断是否在计划时间内
//console.log(endtime)
//判断结束
const StartTime = new Date(starttime);
const EndTime = new Date(endtime);
const CheckDate = new Date(this.formattedDate);
if( !(CheckDate >= StartTime && CheckDate <= EndTime )){
// console.log('存在两者之间')
uni.showModal({
title: '巡检时间未到或超时',
icon: 'error',
content: uni.getStorageSync('name')+'你好,出现该提示说明巡检时间未到或已超出巡检时间,具体原因请联系管理员进行确认。',
showCancel: false
});
//判断时间结束
最近访问时间:2025-04-29 22:13:16