A newer version of this page is available. Switch to the current version.

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.


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