I am receiving date in json response and parsing it using date-format javascript library. It’s working fine in Firefox but throws exception in IE.
date received from json
response.actionDateTime : 2012-04-12T18:23:49
here is what I tried
dateFormat(response.actionDateTime,"dd-mmm-yyyy HH:MM:ss")
It throws exception on following lines of date format library
date = date ? new Date(date) : new Date;
if (isNaN(date)) throw SyntaxError("invalid date");
I am unable to resolve it yet.
And finally, I came up with following cross browser solution. just parsed string to date.
}
But I am still missing date format library.