// 标准时间转年月日
formatDate(date) {
console.log("data=",date)
return `${date.getFullYear()}年${date.getMonth() + 1}月${date.getDate()}`;
},
// 日期确定---开始时间
confirmPickerStart(data) {
console.log('日期确定触发', data)
this.currentDateStart= this.formatDate(data);//将获取到的时间调用formatDate方法转换成年月日
console.log("this.currentDateStart=",this.currentDateStart)
this.valueStart = this.currentDateStart,
this.valueEnd = ''
this.showStart = false
},
//
标准时间转年月日
最新推荐文章于 2024-05-13 14:54:02 发布