[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:

<script>
<!--//hide
document.write(document.lastModified);
 //end hide-->
</script>

and

<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)
// -->
</script>

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:
http://www.chi.nhs.uk

TIA

Zoe





More information about the thelist mailing list