how to change culture date format in c#
A:
For example in DateTimePicker you can use CustomFormat property to add the format you want(independent on culture). or see @gcores's answer.
nihi_l_ist
2010-05-25 10:17:45
A:
If you need to you can change the culture for the current thread so you don't have to do it for each call.
Thread.CurrentThread.CurrentCulture = New CultureInfo("th-TH", False)
More information here: http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.currentuiculture%28VS.71%29.aspx
ho1
2010-05-25 10:46:55
<globalization culture="en-GB"/> in web .config . It works for me
Lalit
2010-05-25 12:33:54