# Countdown timer reference date from a textfile

**URL:** <https://forum.kirupa.com/t/countdown-timer-reference-date-from-a-textfile/301288>\
**Category:** flash\
**Created:** [December 7, 2009, 2:45am UTC](https://forum.kirupa.com/t/countdown-timer-reference-date-from-a-textfile/301288 "2009-12-07T02:45:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![otep](https://avatars.discourse-cdn.com/v4/letter/o/fbc32d/32.png) [@otep](https://forum.kirupa.com/u/otep)\
**Post date:** [December 7, 2009, 2:45am UTC](https://forum.kirupa.com/t/countdown-timer-reference-date-from-a-textfile/301288/1 "2009-12-07T02:45:31Z")

</div>

Hi guys,

I am a noob when it comes to scripting. Please help me on this one, I saw this countdown timer ([http://www.kirupa.com/developer/mx/countdown2.htm](http://www.kirupa.com/developer/mx/countdown2.htm)) and I want the date to be referenced on a text file. :\*(

here is the code;

// first get this current year so this example  
// remains valid for some time to come  
currentDate = new Date();  
thisYear = currentDate.getFullYear();

eventDate = new Date(thisYear, 11, 25); [COLOR=Olive]==\> This will be read from a text file[/COLOR]  
eventMillisecs = eventDate.getTime();

Hoping for your response.

Thank you in advance.

Otep
