How to change culture to a DateTimepicker or calendar control in .Net

后端 未结 6 664
悲&欢浪女
悲&欢浪女 2020-12-05 14:59

How to set internationalization to a DateTimepicker or Calendar WinForm control in .Net when the desire culture is different to the one installed i

6条回答
  •  一个人的身影
    2020-12-05 16:05

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

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

提交回复
热议问题