Skip to main content

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

public string DisplayFormat { get; set; }

Property Value

Type Default Description
String D

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

DevExpress Date Editor for .NET MAUI -- Display format "d"

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

Example 2

DevExpress Date Editor for .NET MAUI -- Display format "D"

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

Example 3

DevExpress Date Editor for .NET MAUI -- Display format "dd/MMM/yyyy"

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

Example 4

DevExpress Date Editor for .NET MAUI -- Display format - custom

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