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