Days since last change

How long since this page was last altered.

<script language=JavaScript>
 <!-- Hide
 /* This JavaScript is composed by Bart Van Hemelen.
 * You can contact him at bvh10000@hotmail.com
 * or via this website http://www.geocities.com/~tenthousand/ .
 * If you like this code so much you want to use it on your website,
 * you can -- as long as you include this copyright notice.
 */

 // Array of day names
 var dayNames = new

Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");

// Array of month names
var monthNames = new

Array("January","February","March","April","May","June","July","August","September","October","November","December");

 today = new Date()
 lastmod = new Date(document.lastModified)
 diffdays = Math.floor( (today.getTime()-
 lastmod.getTime())/(24*60*60*1000) )
 var then = new Date(document.lastModified);
 document.writeln("<center>This page was updated on "+
 dayNames[then.getDay()] + " " + then.getDate() + " " +
 monthNames[then.getMonth()] + " 19" + then.getYear() + ", just " +
 diffdays + " days ago.</center>")
 // Unhide -->
 </script>

 

Share this article!

Follow us!

Find more helpful articles: