I use Asp.net 4 and C#.
I have a Table in my DataBase with a DateTime Column formatted like this: 2011-08-11 11:32:50.43
I need display a string with the DateTime formatted in the right format accordingly to the Web.Config
in my case:
<globalization culture="auto:de" uiCulture="de"/>
So my question: How to set a string rappresenting DateTime accodingly to globalization culture?
System.Globalization.DateTimeFormatInfo is what you are interested in. There is a hefty MSDN page for just this, actually. I also wrote a short example for you but I wasn’t sure if you meant 08 as the month, or day, but you can easily switch that.