Element time conversion timestamp

Much larger than 369 2022-06-23 16:33:23 阅读数:788

elementtimeconversiontimestamp
 if(this.modalList.date != null){
var d = this.modalList.date[0];// Starting time
var e = this.modalList.date[1];// End time
this.modalList.sdate = new Date(d).getTime()/1000;
this.modalList.enddate = new Date(e).getTime()/1000;
}else{
this.modalList.sdate = "";
this.modalList.enddate = "";
}

版权声明:本文为[Much larger than 369]所创,转载请带上原文链接,感谢。 https://qdmana.com/2022/174/202206231544260431.html