
tom_simerson
New User
Mar 16, 2004, 7:45 AM
Post #1 of 2
(10618 views)
Shortcut
|
|
Last updated Java script
|
Can't Post
|
|
Don't know if anyone is interested, but I found a snippet of Java script that will take the last updated data (which is in UNIX epoch seconds) and convert into a human readable format. Here is the entry that I added after the $content$ entry in the _doc_page.html template: <!-- New section to display the last updated date in the main document --> <p>Last updated: <script languange="JavaScript"> <!-- S = new Date($updated$ * 1000).toLocaleString() document.write(S+"<BR>") //--> </script> The displayed data looks like this: Last updated: Wednesday, February 18, 2004 3:49:25 PM Wednesday, February 18, 2004 3:49:25 PM Tom Simerson Neiman Marcus
|