0

Possible Duplicate:
How to format a JSON date?

I have an HTML page that uses JQuery. My JQuery hits a .NET Web Service that does the following:

return DateTime.UtcNow;

An example value returned looks like the following:

"/Date(-62135578800000)/"

In my JavaScript, I'm try to parse the date as follows:

var lastOrderDate = GetValueFromService();
var d = new Date(parseInt(lastOrderDate));
alert(d);

When the alert statement is hit, I see "Invalid Date" in the alert window. What am I doing wrong?

Community
  • 1
  • 1
JQuery Mobile
  • 6,221
  • 24
  • 81
  • 134

0 Answers0