Javascript Convert Date To UTC

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.


检查出来:如何格式化Microsoft JSON日期?

var date = new Date(parseInt(jsonDate.substr(6)));
链接地址: http://www.djcxy.com/p/8160.html

上一篇: JavaScript格式的日期就像在PHP中一样

下一篇: Javascript将日期转换为UTC