var date = new Date(1359147598000); console.log(date); console.log(date.toDateString()); console.log(date.toLocaleDateString());
Will result the following output:
Fri Jan 25 2013 12:59:58 GMT-0800 (PST) Fri Jan 25 2013 1/25/2013
For United States users the date should format as 1/25/2013. For the mates in UK it should format as 25/01/2013.
You would think toLocaleDateString() would be the solution but it appears very brittle and it doesn't even seem to work for when I change my computers locale.