Calendar Valid Dates

In some cases, not all dates in the range are valid. To handle these situations, the Calendar control has an itemValidator property. This sample uses this property to demonstrate a common use case. It prevents users from selecting dates on weekends and holidays.