2017-10-20 55 views

回答

3

您可以刪除at然後將其轉換爲新的日期。

var date = " October 17, 2017 at 5:47:37 PM UTC+5:30"; 
 
var parsedDate = new Date(date.replace(/at/g, "")).getTime(); 
 
console.log(parsedDate);