• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 28. Date Conversions

Lesson 28. Date Conversions

There are often times when your Director movie needs to know what the current date is, or how far away a future date is, or how long ago a past date occurred. In an interactive educational movie, for example, you may want to compare dates to find the number of days since a person first set foot on the moon. You may need to compare dates for security or business purposes or to enable a person to use a trial version of your movie for only 30 days or only until a specific date, such as December 31.

Figure . The DateCalc date calculator determines the number of days between two dates or a given date and the current date. To perform the calculations, the calculator must be capable of entering and outputting information in the date format and be able to convert date information into different forms.


Dates can be tricky to compare, with varying number of days per month and leap years to be accounted for, and to complicate matters, printed date formats vary by country. In the United States, the date 11/2/00 is November 2, 2000, but it represents February 11, 2000, to someone living in Europe. As you will learn in this lesson, Director's date function enables you to add, subtract, and compare dates with ease and provides a standard date format, regardless of country.

If you would like to view the final results of this lesson, open the Complete folder in the Lesson28 folder and play Datecalc.dir.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint