Date 日期加减

// 日期加3天this.businessDate = new Date(new Date().getTime() + 3*8.64e7);//日期加3天,时分秒清00this.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();


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部