# F8 - eventDate problem need help bad

**URL:** <https://forum.kirupa.com/t/f8-eventdate-problem-need-help-bad/233635>\
**Category:** Uncategorized\
**Created:** [July 25, 2007, 4:51pm UTC](https://forum.kirupa.com/t/f8-eventdate-problem-need-help-bad/233635 "2007-07-25T16:51:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dr\_Abner\_Mellon](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@Dr\_Abner\_Mellon](https://forum.kirupa.com/u/Dr_Abner_Mellon)\
**Post date:** [July 25, 2007, 4:51pm UTC](https://forum.kirupa.com/t/f8-eventdate-problem-need-help-bad/233635/1 "2007-07-25T16:51:24Z")

</div>

Any one know why I can’t get this to have a set date? It wants to only pull from my current time and date from my computer. I need to set it to a specific date to start from and to count down to…

Any help would be great!

```auto
currentDate = new Date();
thisYear = currentDate.getFullYear();

eventDate = new Date(2007, 7, 1, 02 , 10 , 40 , 800);
eventMillisecs = eventDate.getTime();

counter.onEnterFrame = function(){

    currentDate = new Date(2007, 6, 1, 02 , 10 , 40 , 800);
    currentMillisecs = currentDate.getTime();
    

    this.msecs = eventMillisecs - currentMillisecs;
    

    if (this.msecs <= 0){
       
        play();
        return;
    }

```
