2015-08-17 53 views

回答

1

你可以試試:

var d = new Date('Sun Aug 16 2015 00:00:00 GMT+0200'); 
console.log(d.getDate()+'/'+ ((d.getMonth()+1)< 10?'0'+(d.getMonth()+1):(d.getMonth()+1)) + '/' + d.getFullYear()); //16/08/2015 
+0

感謝ü洙多 – meer