DateEdit.DisplayFormat Property
In This Article
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
C#
public string DisplayFormat { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
String | D | The pattern used to format the Date |
#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
<dxe:DateEdit ...
DisplayFormat="d"/>
#Example 2
<dxe:DateEdit ...
DisplayFormat="D"/>
#Example 3
<dxe:DateEdit ...
DisplayFormat="dd/MMM/yyyy"/>
#Example 4
<dxe:DateEdit ...
DisplayFormat="{}{0:MM/dd/yy} (MM/dd/yy)"/>
See Also