9

Possible Duplicate:
How to format a JSON date?

I have a JSON that contains some dates that I need to be in a UTC format.

At present if I alert the dates out they are in the following format:

/Date(1329314400000)/

I am trying to loop round the JSON but am unsure on how to convert the above date format to UTC.

If anyone has any advice I would greatly appreciate it.

1

1 Answer 1

6

Check this out: How do I format a Microsoft JSON date?

var date = new Date(parseInt(jsonDate.substr(6)));
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.