Click to See Complete Forum and Search --> : last update problems


gregpva
01-05-2004, 09:20 PM
I have tried several last updated or last modified scripts but all return the current date on my computer not the date the file was created. Any suggestions on how to get the scripts to see the file date? They all seem to use some form of this.

var dateObj = new Date(document.lastModified)
var lmonth = months[dateObj.getMonth() + 1]
var fyear = dateObj.getYear()
var date = dateObj.getDate()

document.write("This page last modified:" + " " + lmonth + " " + date + ", 2004")

Thanks
Greg
gjp2a@virginia.edu

fredmv
01-05-2004, 09:25 PM
http://www.webxpertz.net/forums/showthread.php3?s=&threadid=26645

gregpva
01-05-2004, 09:33 PM
My ISP said the script might not work because I use vitual hosting.

I haveup-laoded and tried three different scripts and all return the date on my computer. If I change my local date, it changes when I refresh the web page.

I guess I'll have to do it manually.

Greg