代码如下
var d = new Date('Thu May 12 2019 11:23:00 GMT+0800 (中国标准时间)');
d=d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate() + ' ' + d.getHours() + ':' + d.getMinutes() + ':' + d.getSeconds();
标签:11,00,23,May,Thu,yyyy,2019,GMT
来源: https://blog.csdn.net/qq_37591637/article/details/101051386