Back to Devexpress

TimeEdit.TimeFormatMode Property

maui-devexpress-dot-maui-dot-editors-dot-timeedit-cbcac1aa.md

latest1.6 KB
Original Source

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

csharp
public TimeFormatMode TimeFormatMode { get; set; }

Property Value

TypeDefaultDescription
TimeFormatModeAuto

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

|

Available values:

NameDescription
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.

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

xaml
<dxe:TimeEdit TimeFormatMode="HourFormat12"/>

See Also

TimeEdit Class

TimeEdit Members

DevExpress.Maui.Editors Namespace