92
rated 0 times
[
93]
[
1]
/ answers: 1 / hits: 32160
/ 13 Years ago, wed, may 18, 2011, 12:00:00
Possible Duplicate:
How do I display a date/time in the user's locale format and time offset?
Hi - simple question - I just want to take this:
document.getElementById(time).innerHTML= new Date();
and format it into something legible, like this:
May 18, 2011 7:45 AM
making sure it is localized to whomever might be seeing it. Currently, it prints out as this:
Wed May 18 2011 07:46:25 GMT-0400 (EDT)
How do I do this?
More From » javascript