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

TimeEdit.TimeFormatMode Property

Gets or sets whether the editor displays the time in 12- or 24-hour format. This is a bindable property.

Namespace: DevExpress.Maui.Editors

Assembly: DevExpress.Maui.Editors.dll

NuGet Package: DevExpress.Maui.Editors

#Declaration

C#
public TimeFormatMode TimeFormatMode { get; set; }

#Property Value

Type Default Description
TimeFormatMode Auto

A value that specifies whether the editor displays the time in 12- or 24-hour format.

Available values:

Name Description
HourFormat12

The time in 12-hour format.

HourFormat24

The time in 24-hour format.

Auto

The time format depends on the current culture.

#Remarks

The editor can display the time in 12- and 24-hour formats.

TimeEdit.TimeFormatMode

TimeEdit.TimeFormatMode

The default format depends on the current culture. Use the TimeFormatMode property to specify the time format explicitly.

<dxe:TimeEdit TimeFormatMode="HourFormat12"/>
See Also