问题
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.
回答1:
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
Code project
Code Plex
回答2:
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;
来源:https://stackoverflow.com/questions/23797234/persian-raddatetimepicker-in-c-sharp-winform