Month in different languages (globalization)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,088
Latest member
JeremyMedl

Latest Threads

Top