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

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top