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