When I retrieve a Date from a web method, it comes in the format of "Mon Sep 30 07:26:14 EDT 2013"
. However, when I try to format this date in my JavaScript code like this:
var d= SomeDate.format("MM/dd/yyyy hh:mm:ss tt"); //Somedate is coming from the web method
In IE7, it displays the time incorrectly as (09/30/2013 04:56:14 PM)
, but in IE9, it shows correctly as (09/30/2013 07:26:14 AM)
.
Is there a way to make it work in IE7?