I have local string date: 12/3/2018, 12:00:00 AM
.
How to convert it to Date()
?
I have local string date: 12/3/2018, 12:00:00 AM
.
How to convert it to Date()
?
Add a Z at the end of the localString
var a=new Date('12/3/2018, 12:00:00Z');
console.log(a);