# Countdown problem to date next year!

**URL:** <https://forum.kirupa.com/t/countdown-problem-to-date-next-year/159221>\
**Category:** flash\
**Created:** [August 15, 2005, 9:26pm UTC](https://forum.kirupa.com/t/countdown-problem-to-date-next-year/159221 "2005-08-15T21:26:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sametchell](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@sametchell](https://forum.kirupa.com/u/sametchell)\
**Post date:** [August 15, 2005, 9:26pm UTC](https://forum.kirupa.com/t/countdown-problem-to-date-next-year/159221/1 "2005-08-15T21:26:56Z")

</div>

I have followed the tutorial ([http://www.kirupa.com/developer/mx/countdown2.htm](http://www.kirupa.com/developer/mx/countdown2.htm)) to countdown to Christmas day. However I want to count down to a date in Feb next year.

How could I modify the code I have already (posted below) to be able to do this. I am fairly new to flash programming so am unaware of the syntax.

// first get this current year so this example  
// remains valid for some time to come  
currentDate = new Date();  
thisYear = currentDate.getFullYear();  
// define the event date counting down to  
// this is constant so it won’t need to be  
// calculated in the onEnterFrame function below  
// currently counting down 'til christmas of 2003  
// Date( year, month-1, date [, hour [, minute [, second [, millisecond]]]])  
eventDate = new Date(thisYear, 01, 01);  
eventMillisecs = eventDate.getTime();

Any help is greatly appreciated, thanks
