# Date function adding 1600000 days

**URL:** <https://forum.kirupa.com/t/date-function-adding-1600000-days/93769>\
**Category:** Uncategorized\
**Created:** [November 4, 2003, 6:53pm UTC](https://forum.kirupa.com/t/date-function-adding-1600000-days/93769 "2003-11-04T18:53:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oracleocp](https://avatars.discourse-cdn.com/v4/letter/o/c68b51/32.png) [@oracleocp](https://forum.kirupa.com/u/oracleocp)\
**Post date:** [November 4, 2003, 6:53pm UTC](https://forum.kirupa.com/t/date-function-adding-1600000-days/93769/1 "2003-11-04T18:53:28Z")

</div>

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();
