TCustomCalendar.MinDate property
Smallest date value that can entered or selected using the calendar control.
Declaration
property MinDate: TDateTime read FMinDate write SetMinDate stored GetMinDateStored;Description
MinDate is a
TDateTime property which contains the
smallest date value that can be stored or selected using the calendar control.
MinDate and MaxDate are used to range check the date value for the control, and to avoid the exception raised when an invalid date is provided. They are also used at run-time to determine the date values that can be displayed and selected using the native calendar control.
The default value for MinDate is an empty TDateTime value (0.0), and indicates that the lower limit has not been assigned. Setting a new value for the property causes the TDateTime value to be validated. The new value in MinDate must in the range defined by the RTL MinDateTime and MaxDateTime constants.
When MinDate and MaxDate contain non-zero date/time values that are at least one day apart, the value in DateTime must in the range represented by the properties. When MinDate and MaxDate are not assigned, the RTL MinDateTime and MaxDateTime constants are used to range limit the value in DateTime. An EInvalidDate exception is raised when the date value is not valid for the data type, or not within the required range.
Introduced in LCL 2.3, and available in LCL versions 3.0 and higher.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
