H
Hvid Hat
Hi
The following code will give me the month names in the given culture:
CultureInfo cultureInfo = new CultureInfo(CultureInfo.CurrentCulture.Name);
string[] months = cultureInfo.DateTimeFormat.MonthNames;
Now I'm wondering if I can also get the translation of the words day, month
and year in different languages from the globalization class? Is there a
property/method for those words? E.g. cultureInfo.DateTimeFormat.Month would
return "Monat" (month) if German culture.
The following code will give me the month names in the given culture:
CultureInfo cultureInfo = new CultureInfo(CultureInfo.CurrentCulture.Name);
string[] months = cultureInfo.DateTimeFormat.MonthNames;
Now I'm wondering if I can also get the translation of the words day, month
and year in different languages from the globalization class? Is there a
property/method for those words? E.g. cultureInfo.DateTimeFormat.Month would
return "Monat" (month) if German culture.