Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem in lastModified with Netscape

Status
Not open for further replies.

thendal

Programmer
Aug 23, 2000
284
Hi all!

When i tried out this script its working fine with IE,But in netscape its giving a wrong year,Is any one come across such problem...



<script language=&quot;javascript&quot;>
document.write(&quot;Last Revised: &quot;)
document.write(document.lastModified)
</script>

 
Yep, I think it is similar to the getYear() thing where you need to add 1900. &quot;Alright whatever man, I'll hook up the hair, but I aint touchin the ring...Cause I'm still a pla--yer&quot;
 
It displays as 1969.
So ?
Is there any way to over come in netscape?
 
I believe ECMA-262 specifies a getLastYear() method which gets rid of the y2k bug in javascript.

you can always look at ===
Supports Mozilla and Web Standards
Knows HTML/XHTML, CSS1, JavaScript, PHP, C++, DOM1
===
 
Is there any other method i can use instead of lastmodified.

I need to place a script in which it will automtically updates the date and year when user updates the page.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top