Weekdays in the a custom language.
.NET (Core and Framework)
1
Posts
1
Posters
0
Views
1
Watching
-
Does anyone know how to get the string-representation of the weekday in a custom language? For example, I would like to have the name of the week in Swedish by doing something like this.
System.Globalization.CultureInfo culture = new System.Globalization.CultureInfo("sv-SE", false); System.DayOfWeek day = culture.Calendar.GetDayOfWeek(DateTime.Now); string dayAsString = day.ToString();
But this will only return the day in English. :-(( :doh: I would rely appreciate some help here. Regards, Mattias