The code: new Date('2011-12-15 00:00:00')
is showing as NaN
.
How can I convert this date?
Any helps are appreciated.
My code is very straight forward. It works in Chrome but not in IE 9.
var dateText = new Date('2012-08-01 00:00:00');
alert(dateText.getDate().toString() + "/" + dateText.getMonth().toString() + "/" + dateText.getYear().toString());