[thelist] Last modified date

Zoe Oughton zoe.oughton at btconnect.com
Thu Apr 19 04:02:48 CDT 2001

Hi listees

I am using a javascript to insert the last modified date on web pages.

I have 2 different scripts:

 //end hide-->


<script LANGUAGE="JavaScript">
var modiDate = new Date(document.lastModified)
var month = modiDate.getMonth()+1
var day = modiDate.getDate()
var year = modiDate.getYear()
var showDate = day + "/" + month + "/" + year
document.write("This page last modified on " + showDate)
// -->

Both scripts, rather than showing the last modified date of the file, are
showing the current date!!!

Where this is happening is on SSI pages which have the suffix .shtml
On the first page to the site, which is a standard index.htm file, the date
shows the correct modified date

Can anyone explain why this is happening??

The web site is:



More information about the thelist mailing list