var sdtime1 = new Date(‘2018-03-22 16:14:55‘)
var sdtime2 = sdtime1.setHours(sdtime1.getHours() -1)
console.log(new Date(sdtime2).Format("yyyy-MM-dd HH:mm:ss"));
标签:gpo new var form body time mat set orm
var sdtime1 = new Date(‘2018-03-22 16:14:55‘)
var sdtime2 = sdtime1.setHours(sdtime1.getHours() -1)
console.log(new Date(sdtime2).Format("yyyy-MM-dd HH:mm:ss"));
标签:gpo new var form body time mat set orm
原文地址:https://www.cnblogs.com/amanda-man/p/8625401.html