Re: Javascript for Date Last Changed & Y2K
[ Follow Ups ] [ Post Followup ] [ Intranet eXchange ] [ IDM Home ]
Posted by sandi on January 7, 2000 at 19:40:44:
In Reply to: Re: Javascript for Date Last Changed & Y2K posted by bill palmer on January 5, 2000 at 12:11:34:
I've got users of both IE and Netscape. And thanks to an update on the info from Mr. Powell, here's what I've been using to show last update on my pages: <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var months=new Array(13); months[1]="January"; months[2]="February"; months[3]="March"; months[4]="April"; months[5]="May"; months[6]="June"; months[7]="July"; months[8]="August"; months[9]="September"; months[10]="October"; months[11]="November"; months[12]="December"; var time=new Date(document.modified); var lmonth=months[time.getMonth() + 1]; var date=time.getDate(); var year=time.getYear(); if (year < 2000) // Y2K Fix, Isaac Powell year = year + 2000; // http://onyx.idbsu.edu/~ipowell document.write("<font size='-2'><I>Last update: " + lmonth + " "); document.write(date + ", " + year + " </I></font>"); // End --> </SCRIPT> I hope it works for you! sandi
Follow Ups:
|