Back to Devexpress

DateEdit.DisplayFormat Property

maui-devexpress-dot-maui-dot-editors-dot-dateedit.md

latest2.3 KB
Original Source

DateEdit.DisplayFormat Property

Gets or sets the pattern used to format the DateEdit‘s value. This is a bindable property.

Namespace : DevExpress.Maui.Editors

Assembly : DevExpress.Maui.Editors.dll

NuGet Package : DevExpress.Maui.Editors

Declaration

csharp
public string DisplayFormat { get; set; }

Property Value

TypeDefaultDescription
StringD

The pattern used to format the DateEdit‘s value.

|

Remarks

You can use format specifiers to set a display format for dates. For more information, refer to the following help topics:

The following examples show different date formats:

Example 1

xaml
<dxe:DateEdit ...
    DisplayFormat="d"/>

Example 2

xaml
<dxe:DateEdit ...
    DisplayFormat="D"/>

Example 3

xaml
<dxe:DateEdit ... 
    DisplayFormat="dd/MMM/yyyy"/>

Example 4

xaml
<dxe:DateEdit ...
    DisplayFormat="{}{0:MM/dd/yy} (MM/dd/yy)"/>

See Also

DateEdit Class

DateEdit Members

DevExpress.Maui.Editors Namespace