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

DateField

You can figure this one out from the code. I'm exhausted.

// Is there a date?
userDate = form.start_date.selectedDate
if (userDate)
{
    // make sure date is within a certain range
    var maxYear:Number = 2007;
    if (userDate.getYear() > maxYear)
    {
          trace("your date is too future-y.")
    }
} else {
    trace("bad date");
}


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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