Date function adding 1600000 days

Hi all,

I’m trying to add 1,600,000 days to the date function. The only thing I get is “NaNa” when I test it. Can someone please tell me why this occur.

d=new Date();
d.setDate(d.getDate()+1600000);
month = d.getMonth()+1;
monthsname = months[month-1];
todaysdate = timedate.getDate();
//day = timedate.getDay();
dayy = d.getDate();
daysname = daysdays[dayy];
yearr = d.getFullYear();
test1 = monthsname+" " +dayy+", "+yearr;

fulldate = monthname+" “+todaydate+”, "+year;
delete timedate;
timedate = new Date();

isnt it rather NaN (not a number???)

maybe since you can’t have more than 31 days in a month it has trouble computing it but I don’t know; does it work for a smaller number (ie 100 instead of 1600000)?

Yes it is "NaN " and not a number.

It works for smaller value but, I want it to find out the year by adding the 1600000 days to it. Like a future day. I’m doing a trip planner where if you travel by car to outerspace like pluto, it will take at least 1600000 day from today.

thanks.

**** sorry, i never looked much at the date functions, but there are waaaaaay more experienced flashers out here, and if you dont find your answer try looking on flashkit sometimes =)