1

I have a UTC date like this: 01-01-1969 00:00:00. I want to convert it to local time using jQuery. I have tried the below, but it completely messes up the format.

var date = new Date('01-01-1969 00:00:00 UTC');
date.toString() 

and also

var date = new Date('26-04-1973 00:00:00 UTC');//gives invalid date

this gives an invalid date. Strange, infact there are many more date which returns invalid date.

Furquan Khan
  • 1,586
  • 1
  • 15
  • 30

0 Answers0