JS格式化Thu May 12 2016 08:00:00 GMT+0800 (中国标准时间)

var d = new Date('Thu May 12 2016 08:00:00 GMT+0800 (中国标准时间)');  
youWant=d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate() + ' ' + d.getHours() + ':' + d.getMinutes() + ':' + d.getSeconds();  
//yyyy-MM-dd hh:mm:ss  
原文地址:https://www.cnblogs.com/xfdmb/p/6867213.html