Reputation: 16430
I am using highcharts a JS library it gives me the time of a point in UTC format: 2592000000 which should correlate to a date somewhere in 2011.
How do I get the actual date of this?
Upvotes: 2
Views: 914
Reputation: 46557
Checkout date.js. It extends the Date.parse method and Date.parseExact method and you can specify a format string.
http://code.google.com/p/datejs/wiki/APIDocumentation
Check out moment.js...
A lightweight javascript date library for parsing, manipulating, and formatting dates.
http://momentjs.com/docs/#/parsing/unix
Upvotes: 2