Reputation: 75
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
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