Put this in the body of a page, just as a test of the toLocaleDateString() method:
Code:
<br><script type="text/javascript">
var d=new Date();
document.write(d.toLocaleDateString());
</script><br>
If you like it, work it into your script.
One thing to keep in mind is, and this could be a good thing for you, if you think about it, toLocaleDateString() method will use the user's preferred method for a formal date as set by either the language, nationality or date style preference on his or her computer. Most folks in the USA will get this format:
Sunday, March 19, 2006
Bookmarks