TDateEdit.DateOrder property
Controls the display order for Year, Month, and Day parts of the Date value.
Declaration
property 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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
