# flash8 actionscript 2.0 help w/code for specific date & time for a frame jump

**URL:** <https://forum.kirupa.com/t/flash8-actionscript-2-0-help-w-code-for-specific-date-time-for-a-frame-jump/317377>\
**Category:** flash\
**Created:** [December 18, 2010, 10:22am UTC](https://forum.kirupa.com/t/flash8-actionscript-2-0-help-w-code-for-specific-date-time-for-a-frame-jump/317377 "2010-12-18T10:22:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Starrey](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@Starrey](https://forum.kirupa.com/u/Starrey)\
**Post date:** [December 18, 2010, 10:22am UTC](https://forum.kirupa.com/t/flash8-actionscript-2-0-help-w-code-for-specific-date-time-for-a-frame-jump/317377/1 "2010-12-18T10:22:40Z")

</div>

Just when i think I have learned something and can make something work…I find out I know less than nothing…hahaha…its either laugh or tear my hair out (thinks there must be a lot of bald actionscripters) LOL  
this is the code i came up with and is not working. I want this on a frame on main timeline and when it hits the target date and time gotoAndPlay(theframe). Any help be much appreciated …ty

nyeve.onEnterFrame = function() {  
nyeveDate = new Date();  
seconds = nyeveDate.getSeconds();  
minutes = nyeveDate.getMinutes();  
hours = nyeveDate.getHours();  
if(nyeveDate == currentyear, 11, 31 && hours == 23 && minute ==59 && seconds == 50);  
gotoAndPlay(257);  
};
