// 日期加3天
this.businessDate = new Date(new Date().getTime() + 3*8.64e7);
//日期加3天,时分秒清00
this.businessDate = new Date(new Date(new Date().toLocaleDateString()).setDate(new Date().getDate()+3))
// 今天到90天的时间范围
private pickerOptions = {
disabledDate(time: any) {
let curDate = (new Date()).getTime();
let three = 90 * 24 * 3600 * 1000;
let threeMonths = curDate + three;
return time.getTime() < Date.now() - 8.64e7 || time.getTime() > threeMonths;
},
};
const minDate = new Date(new Date().setDate(new Date().getDate() - 30));
const maxDate = new Date();
Date 日期加减
最新推荐文章于 2024-05-11 14:31:22 发布