-3

how to change culture date format in c#

walther
  • 13,466
  • 5
  • 41
  • 67
Red Swan
  • 15,157
  • 43
  • 156
  • 238

3 Answers3

1

Are you asking for this?

Formatting Date and Time for a Specific Culture

gcores
  • 12,376
  • 2
  • 49
  • 45
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