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

Lesson 28. Date Conversions > How to Compare Dates

How to Compare Dates

You can compare a date against today's date (the systemDate value), or you can compare two specific dates. To do either, you need to be able to enter dates as well as to retrieve them. The systemDate property returns the date in a standard date format or data type. Director also allows you to supply a date in the standard date data type. Three formats are available for entering such a date:

date(19621125)        --Date is entered as an integer.
date(1962, 11, 25)    --Date is entered in comma-separated format.
date("19621125")      --Date is entered as a string.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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