 |

tom_simerson
New User
Mar 16, 2004, 7:45 AM
Post #1 of 2
(9782 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
|
|
|  |
 |

Donna
Staff
/ Moderator

Mar 16, 2004, 12:19 PM
Post #2 of 2
(9775 views)
Shortcut
|
|
Re: [tom_simerson] Last updated Java script
[In reply to]
|
Can't Post
|
|
Thanks, Tom! Great script. :) Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
|