Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued Products: DocBuilder:
Last updated Java script

 

 


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: &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 (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.

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4