How to: Format Date-Time Values Using the LongDate Pattern

The following code demonstrates how to format values in a DateEdit control using the Long Date pattern.

The result for the English (USA) culture is displayed below.

CD_Formatting_StandardFormatString_D_DateEdit

using DevExpress.Utils;
// ...
dateEdit1.Properties.DisplayFormat.FormatType = FormatType.DateTime;
dateEdit1.Properties.DisplayFormat.FormatString = "D";