# Creating a date selection

**URL:** <https://forum.kirupa.com/t/creating-a-date-selection/197413>\
**Category:** Uncategorized\
**Created:** [August 16, 2006, 4:48am UTC](https://forum.kirupa.com/t/creating-a-date-selection/197413 "2006-08-16T04:48:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![messlah](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@messlah](https://forum.kirupa.com/u/messlah)\
**Post date:** [August 16, 2006, 4:48am UTC](https://forum.kirupa.com/t/creating-a-date-selection/197413/1 "2006-08-16T04:48:01Z")

</div>

Hey all,

I have a small mc that has 10 or so frames. On each frame I am displaying different content.

I am atempting to create a kind of date selection peice of code that will check todays date and then for the playhead to go to the specific frame I have signaled in the AS.

eg.  
newdate = Date();

if newdate = (is between monday 14 & sunday 20)  
gotoAndStop(“myframe”)  
if newdate = (is between monday 21 & sunday 27)  
gotoAndStop(“myframe2”)  
etc

my criteria is for a weekly selection, so every Monday morning at 00:00 hours it should go to the next frame(display the next frame) etc

Any help with this would be great.
