views:

43

answers:

2

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...

+1  A: 

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

Johan Buret
OK - thanks! Then I know it isn´t possible for the datetimepicker itself :-)
Jack Johnstone
I just checked; Changing the culture will use the new culture's date format, but at least on Win7, the popup still uses the OS user culture's strings.
OregonGhost
+1  A: 

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;
Iale
Good info! I probably won´t do this though...
Jack Johnstone