# Controlling a movie by computer date

**URL:** <https://forum.kirupa.com/t/controlling-a-movie-by-computer-date/172632>\
**Category:** Uncategorized\
**Created:** [December 16, 2005, 10:24am UTC](https://forum.kirupa.com/t/controlling-a-movie-by-computer-date/172632 "2005-12-16T10:24:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mickmaster\_b](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mickmaster\_b](https://forum.kirupa.com/u/mickmaster_b)\
**Post date:** [December 16, 2005, 10:24am UTC](https://forum.kirupa.com/t/controlling-a-movie-by-computer-date/172632/1 "2005-12-16T10:24:02Z")

</div>

Hi, does anyone know the best way to control a movie by the date on a computer. For instance the movie is a list of events [say 20], but only the first 5 are visible. As the first event date passes [say 16.12.05], the movie will then move to show the next relevant 5 events - moving the movie by x, y positioning.

Is it something along the lines of:

var today: Date = new Date();  
if(today.getDate() \< 16.12.05){  
//do this [x,y]  
}else{  
//do that [x,y]  
}

But do i need to create an array to control specific events [spread over 3 months, the array with dates, months].  
Any ideas? Any help much appreciated.
