Suppose I have a country code (en, de, fr) and I need to display weekdays in this language. I know about RegionInfo and CultureInfo, but I can not find a solution. If I create country information from (for example) "en", I don't have DateTime data. It would also be easy to take the first relevant region. For example, en-US for en or de-DE for de.
I do not know if there are differences in DayNames, but I know that there are several months. de-DE Februar - de-AT Feber - anyway, I don't care. The event, if it can be βa little differentβ (to see Fevroir instead of Feber), is still German.
And this is what I want to achieve - write on Monday - get de and write Montag ...
Is there a way to create a region only from a language code?
source
share