I have UTC: 1325271847. On this I use javascript to convert it to Fri Dec 30 2011 14:04:07 GMT-0500 (Eastern Standard Time). I want to convert it back to UTC format. ie 1325253847.
Asked
Active
Viewed 2,682 times
2
-
http://stackoverflow.com/questions/948532/how-do-you-convert-a-javascript-date-to-utc – Dec 30 '11 at 19:48
-
Thanks, Mastermind!. I think i can work it out from here. – aVC Dec 30 '11 at 20:13
1 Answers
2
document.write(new Date("Fri Dec 30 2011 14:04:07 GMT-0500 (Eastern Standard Time)").getTime()/1000 + " seconds since 1970/01/01");

Bakudan
- 19,134
- 9
- 53
- 73