0

I'm getting dates from a WCF service and I'm getting some inconsistency with the various dates

/Date(-62135578800000-0500)/ -- this returns 00's

vs

/Date(1369188057000-0400)/ -- this works fine

I'm using

date = new Date(parseInt(tblData.substr(6)));

Any reason the '0500' is returning "Mon Jan 01 1 00:00:00 GMT-0500 (Eastern Standard Time)" which seems to be Eastern Standard vs Daylight savings time?

1 Answer 1

1

You just put the numbers in new Date() Here: http://jsfiddle.net/4aGyD/1/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.