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