Possible Duplicate:
Convert UTC Epoch to local date with javascript
In my project,
I am receiving a JSON. it contains one field like
"displayDate":"1349137055814",
How can I convert to user readable (understandable, to be specific 😉 ) form?
For eg mm-dd-yyyy
And what is this format?
new Date(milliseconds) creates a new date object using your millseconds value.
You can then use getYear, getDate, toLocaleFormat() or toUTCString to get your correct format.