Last post Jul 31, 2008 08:43 AM by dacanetdev
Jul 31, 2008 05:39 AM|PProgrammer|LINK
Visual Studio 2008, Standard, .NET 3.5, C#:
Using DateTime.Today.ToLongDateString() shows the day of week (and date) in my localized system language (german).
Using DateTime.Today.DayOfWeek shows the day of week in english, without chaning anything else. Why?
How can I dislplay the day of week in german with
Thanks for your help.
Jul 31, 2008 08:43 AM|dacanetdev|LINK
It is not localized http://msdn.microsoft.com/en-us/library/system.dayofweek.aspx
instead you can use
CultureInfo ci = new CultureInfo("de-DE");
Thread.CurrentThread.CurrentCulture = ci;
and parse the string inside the Console.WriteLine to get the Day name