This project is read-only.
Project Description
DateEditEx inherit from DevExpress DateEdit. This control supports multi culture and right to left.


Windows DateTimePicker doesn’t support calendar except Gregorian calendar; therefore a problem appears to display date time fields in multi language projects. My date picker solves this problem. This control named DateEditEx. DateEditEx inherit from DevExpress DateEdit. You can download their component suit from My uploaded setup contains all dependent reference.

Using the code

This product represents a Culture property to implement multi culture control, also you can set an instance of culture to thread for changing its functionality:
Thread.CurrentThread.CurrentCulture = new CultureInfo(“fa-Ir”);
dateEditEx.Culture = new CultureInfo(“fa-Ir”);
And set a custom calendar to change functionality of it.
dateEditEx.RightToLeft = RightToLeft.Yes;
Thread.CurrentThread.CurrentCulture.DateTimeFormat.Calendar = new PersianCalendar();
dateEditEx.Culture.DateTimeFormat.Calendar = new PersianCalendar();

for GregorianCalendar

dateEditEx.RightToLeft = RightToLeft.No;
Thread.CurrentThread.CurrentCulture.DateTimeFormat.Calendar = new GregorianCalendar();
dateEditEx.Culture.DateTimeFormat.Calendar = new GregorianCalendar();

for HijriCalendar

dateEditEx.RightToLeft = RightToLeft.Yes;
Thread.CurrentThread.CurrentCulture.DateTimeFormat.Calendar = new HijriCalendar();	
dateEditEx.Culture.DateTimeFormat.Calendar = new HijriCalendar();	

Points of Interest
For more information about set PersianCalendar to culture see

Last edited Jul 9, 2009 at 5:57 PM by rezataroosheh, version 12