Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

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