JS 格式化Sat Oct 14 2017 00:00:00 GMT+0800 (中国标准时间) 为正常时间2017-10-14 阿星小栈

 

       var d = new Date('Thu May 12 2016 08:00:00 GMT+0800 (中国标准时间)');  

       var  resDate = d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate() + ' ' + d.getHours() + ':' + d.getMinutes() + ':' + d.getSeconds(); 

原文地址:https://www.cnblogs.com/dereckbu/p/7691938.html