Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: DocBuilder:
Last updated Java script

 

 


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: &nbsp;
<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 (10611 views)
Shortcut
Re: [tom_simerson] Last updated Java script [In reply to] Can't Post

Thanks, Tom! Great script. :)

Donna

--
support@interactivetools.com