DateEdit supports built-in globalization to use it in different languages and cultures in the following ways:
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.
| C# |
コードのコピー
|
|---|---|
// 文化を設定します dateEdit.CultureInfo = new System.Globalization.CultureInfo("ar-IQ"); // 右から左への機能を有効にします dateEdit.RightToLeft = RightToLeft.Yes; dateEdit.Calendar.DayNameLength = 4; |
|
You can also set the DateEdit with Japanese culture:

The following code snippet shows how to set the Japanese culture in the DateEdit control:
| C# |
コードのコピー
|
|---|---|
dateEdit.CultureInfo = new System.Globalization.CultureInfo("ja-JP"); dateEdit.Calendar.CalendarType = C1.Win.Calendar.CalendarType.JapaneseCalendar; dateEdit.Calendar.CaptionFormat = "gg yyyy年 MM"; |
|