In This Topic
DateEdit supports internationalization in the following ways:
- Culture settings: DateEdit enables formatting, parsing, and validating data on the basis of a specific culture. The control allows specifying culture(s) through the CultureInfo class of the System.Globalization namespace. To specify a culture for DateEdit, set the Culture property. This property takes integer value, and utilizes LCID property of CultureInfo class.
For information about different culture names and identifiers, see CultureInfo class in .NET Framework documentation.
- Right-to-left support: DateEdit provides right-to-left support for languages that follow right-to-left scripts. To enable right-to-left functionality in the DateEdit control, set the RightToLeft property from RightToLeft Control in Systems.Windows.Forms.
For information about setting culture settings and right-to-left functionality in CalendarView, see Culture Settings and Right to Left Support in CalendarView Features.
The following image shows DateEdit with Arabic culture in right-to-left direction.
The following code snippet shows how to set the current culture and enable right-to-left functionality in the DateEdit control.
See Also