In this example, the user selects a date from a calendar and then specifies the start and end dates to validate the specified date against. The form compares the specified date against the date range and reports whether the specified year, month, and day are valid.
Livecycle validatedate Validating a date by using a script
{
}
bStartYear = true;
bEndYear = true;
Status.addItem(“valid year”);
Status.addItem(“invalid year”);
bStartMonth = true;
bEndMonth = true;
Status.addItem(“valid month”);
Status.addItem(“invalid month”);
bStartDay = true;
bEndDay = true;
Status.addItem(“valid day”);
Status.addItem(“invalid day”);

Validating a date by using a script