17
rated 0 times
[
20]
[
3]
/ answers: 1 / hits: 37658
/ 14 Years ago, wed, december 1, 2010, 12:00:00
var exampleDate='23-12-2010 23:12:00';
I want to convert above string into a date
and have tried a couple things:
var date = new Date(exampleDate); //returns invalid Date
var date1 = Date.parse(exampleDate); //returns NAN
This code is running fine in IE
and Opera
, but date
is returning me an invalid Date
and date1
is returning NAN
in Firefox. What should I do?
More From » date