# Days left until

**URL:** <https://forum.kirupa.com/t/days-left-until/112570>\
**Category:** Uncategorized\
**Created:** [June 9, 2004, 9:43am UTC](https://forum.kirupa.com/t/days-left-until/112570 "2004-06-09T09:43:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enidea](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Enidea](https://forum.kirupa.com/u/Enidea)\
**Post date:** [June 9, 2004, 9:43am UTC](https://forum.kirupa.com/t/days-left-until/112570/1 "2004-06-09T09:43:15Z")

</div>

Im trying to do a script that tell how many days is left until a specific date.

Ive come this far:

today = new Date(today.getYear() + 1900, today.getMonth(), today.getDate());  
today = today.getTime();

thedate = new Date(2004, 7, 7);  
thedate = thedate.getTime();

then something like:  
daysleft.text = thedate - today;

but that returns: “NaN”
