TcxCustomDateEdit.Date Property
Determines the currently displayed date value.
Declaration
property Date: TDateTime read; write;
Property Value
Type |
---|
TDateTime |
Remarks
Use the Date property to get and set the floating-point data stored by an editor. The EditValue property and Date refer to the same data as the Date property is an EditValue wrapper. EditValue is of type Variant and can store NULL values. If EditValue specifies NULL, the Date property returns the NullDate constant value.
After an end-user sets focus to another control or presses the Enter key, the edit text is validated and converted to the EditValue property. To obtain the date value directly from the string that is currently displayed in an editor, use the CurrentDate property.
You can specify the range of input date/time values for the Date property using the Properties.MaxDate and Properties.MinDate properties. To help end-users select valid dates in the editor’s dropdown calendar, set the ShowOnlyValidDates property to True.