Version

Restricting the Range of Dates Accepted by the DateTimeEditor

The WinDateTimeEditor™ control provides the ability to restrict the range of dates that will be accepted by the element. This is accomplished by setting the MinDate and MaxDate properties. When these properties are set, the element will disallow navigation (via the Drop-down calendar) to dates that lie outside that range. Furthermore, if a date that lies outside the range determined by the MinDate and MaxDate properties is typed into the element’s edit portion, the date will revert to the last valid date when the element loses focus.