how to change culture date format in c#
Asked
Active
Viewed 1,224 times
-3
-
What kind of application? ASP.NET, WinForms, other? – Darin Dimitrov May 25 '10 at 10:07
-
Can you explain in more detail what you want to do? – Fredrik Mörk May 25 '10 at 10:09
3 Answers
0
For example in DateTimePicker you can use CustomFormat property to add the format you want(independent on culture). or see @gcores's answer.

0x49D1
- 8,505
- 11
- 76
- 127
0
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

Hans Olsson
- 54,199
- 15
- 94
- 116