[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'EditBtn' (#lcl)

TDateEdit.DateOrder

Controls the display order for Year, Month, and Day parts of the Date value.

Declaration

Source position: editbtn.pas line 646

published property TDateEdit.DateOrder : TDateOrder
  read FDateOrder
  write SetDateOrder;

Description

DateOrder is a TDateOrder property which indicates the order of the Year, Month, and Day parts of the Date value. Values in the enumeration include:

doNone
No order is specified. The value in DateFormat is used instead. EditMask is set to ''.
doMDY
Displays values in Month, Day, Year order and uses the format specification 'mm/dd/yyyy'. EditMask is set to '99/99/9999;1;_'.
doDMY
Displays values in Day, Month, Year order and uses the format specification 'dd/mm/yyyy'. EditMask is set to '99/99/9999;1;_'.
doYMD
Displays values in Year, Month, Day order and uses the format specification 'yyyy/mm/dd'. EditMask is set to '9999/99/99;1;_'.

Setting a new value for the property causes SetDateMask to be called to update the EditMask for the control.

DateOrder is also used when the value in Date is converted to a String type and stored in the Text property.

Use DateFormat for the format specification used when DateOrder is doNone.

See also

TDateEdit.Date

  

Contains the TDateTime value for the control.

TDateEdit.DateFormat

  

Specifies the format string used for the date value in the control.

TDateEdit.SetDateMask

  

Applies an EditMask based on the DateOrder for the control.

TDateEdit.Text

  

String with the text or caption for the control.

TDateOrder

  

Controls the display order for Month, Day, and Year portions of a date value.

TCustomAbstractGroupedEdit.EditMask

  

Contains the masking characters used in the editor for the control.


Version 4.0 Generated 2025-05-03 Home