开发者

How do I set the language for datetimepicker?

开发者 https://www.devze.com 2023-01-05 18:06 出处:网络
Is there any property to set the language for datetimepicker? When displaying the calendar, that is - if I want开发者_开发知识库 the week days to be displayed in Spanish, for example...You can change

Is there any property to set the language for datetimepicker?

When displaying the calendar, that is - if I want开发者_开发知识库 the week days to be displayed in Spanish, for example...


You can change culture for thread:

 System.Globalization.CultureInfo culture = new System.Globalization.CultureInfo("es-ES");
 System.Threading.Thread.CurrentThread.CurrentCulture = culture;
 System.Threading.Thread.CurrentThread.CurrentUICulture = culture;


You can't change the culture, which contains weekdays names among other things, on a single control like the DateTimePicker, but at thread level.

0

精彩评论

暂无评论...
验证码 换一张
取 消