900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > Thu Jun 01 00:00:00 GMT+0800 (中国标准时间) 转成年月日

Thu Jun 01 00:00:00 GMT+0800 (中国标准时间) 转成年月日

时间:2018-12-19 15:41:41

相关推荐

Thu Jun 01  00:00:00 GMT+0800 (中国标准时间) 转成年月日

var s = new Date('Thu Jun 01 00:00:00 GMT+0800')const startDate = s.getFullYear() + '-' + this.p((s.getMonth() + 1)) + '-' + this.p(s.getDate())p(m){return m < 9 ? '0'+ m : m},console.log(startDate)//-06-01

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。