Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxFormatController.UseDelphiDateTimeFormats Property

Defines whether to use the SysUtils conversion functions to represent date values.

#Declaration

Delphi
property UseDelphiDateTimeFormats: Boolean read; write;

#Property Value

Type
Boolean

#Remarks

Set this property to True to employ the SysUtils functions (DateTimeToStr) to convert date values to text representation. Otherwise, the system (GetDateFormat) functions are used instead.

The following code lets you use the short time format instead of the long time format in TcxDateEdit controls.

Delphi
uses
  ..., cxFormats;
...
  LongTimeFormat := 'hh:mm';
  cxFormatController.UseDelphiDateTimeFormats := True;
See Also