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

TcxCustomTimeEditProperties.Use24HourFormat Property

Indicates whether the time editor uses 24- or 12-hour format in edit mode.

#Declaration

Delphi
property Use24HourFormat: Boolean read; write; default True;

#Property Value

Type Default
Boolean True

#Remarks

The Use24HourFormat allows you to choose between 24- and 12-hour formats when editing time values.

When Use24HourFormat is True, the time value is represented using the hh:mm:ss format where hh denotes the hours portion varying from 00 to 23, mm – minutes, ss – seconds.

If Use24HourFormat is False, the time format is hh:mm:ss ts. The hh portion defines hours varying from 1 to 12. The ts portion identifies a time suffix (the AM or PM strings in the English locale).

You can specify what portions of a time value to display via the TimeFormat property.

The default value of the Use24HourFormat property is True.

See Also