Sasan007
Sasan007

Reputation: 75

Persian RadDateTimePicker in C# winform?

I like to use DateTimePicker in my winforms C# project but both C# and Telerik Control have Gregorian date.
Can anyone convert these control to Persian DateTimePicker? Is any way for my problem.
Please help me.

Upvotes: 4

Views: 5683

Answers (2)

im_shidi
im_shidi

Reputation: 31

use the telerik radDateTimePicker and write this code , after InitializeComponent(), and Instead of "fa-IR" use your culture . enjoy :)

Application.CurrentCulture = new CultureInfo("fa-IR"); 
radDateTimePicker1.Format = DateTimePickerFormat.Custom; 
radDateTimePicker1.CustomFormat = Application.CurrentCulture.DateTimeFormat.ShortDatePattern;

Upvotes: 2

Dnyanesh
Dnyanesh

Reputation: 2343

I don't think there is any way in C# to set DataTimePicker to Persian. And Telerik also do not support such thing take a look here.

So I would suggest you to explore other options such as

Upvotes: 4

Related Questions