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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date problem

Status
Not open for further replies.

rakesh76

Programmer
Feb 15, 2002
9
US


Dear friends

I am checking my script code in netscape navigator 6.2

i wrote following code in my script

var now = new Date();
var year = 1900 + now.getYear();
(if you give now.getYear() it's returning current year - 1900 in netscape navigator)

if i am changing year from 2002 to 2036 it's working fine.
but if i am changing 2038 it's giving 1902
how come it will give 1902?

Rakesh Sanghvi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top