TcxDateEdit Class
TcxDateEdit is an edit control with a dropdown calendar.
Declaration
TcxDateEdit = class(
TcxCustomDateEdit
)
Remarks
The TcxDateEdit class represents an editor which allows the selection and editing of date values.
Similar to other ExpressEditors, the TcxDateEdit class allows the managing of various attributes via the Properties property. These attributes are the input kind, buttons, the savetime feature and many others.
In addition to entering dates via the dropdown calendar, a date editor allows a user to enter dates within an edit box in a number of ways depending on the Properties.InputKind property. The following table lists some of the possible formats recognized by a date editor in a system with default English (United States) regional settings.
InputKind value | Examples of dates |
---|---|
ikStandard | 01/31 01/31/2002 9-Aug August/09/2002 Smart input strings: today; tomorrow; Sunday; now; bom today–7; now+3 |
IkMask | 01/31/2002 |
IkRegExpr | 01/31/2002 Aug/09/2002 Smart input strings: today; tomorrow; Sunday; now; bom today–7; now+3 |
If the year is omitted in the ikStandard mode, the current year is assumed. The syntax in the ikRegExpr mode supports the auto-completion function. Also validation is performed and this restricts the user input.
Smart input strings are described in the SmartTextToDate topic. See the Using SmartTextToDate Function section to know how to expand possible constants.
Use the Style, StyleDisabled, StyleFocused, and StyleHot properties to adjust the look & feel of an editor in various control states.
TcxDateEdit publishes many of the properties and methods inherited from TcxCustomDateEdit, but it does not introduce any new behavior.