[quoted text, click to view] > Isn't it possible to change the date format according to the
> CurrentUICulture???
No. And it is not recomended.
[quoted text, click to view] > Only if I set the current culture using
> Thread.CurrentThread.CurrentCulture
> can the date format be changed for the culture setting????
Yes. CurrentCulture and CurrentUICulture have different roles.
CurrentCulture decides formatting, CurrentUICulture decides UI language.
Sure, you can set CurrentCulture to have the same value as CurrentUICulture.
But it might be confusing for the user.
Windows itself has different settings for the formatting
(Control Panel -> Regional and Language Options -> Tab1: Regional Options)
The "Standards and formats" determines the user locale for nls
(CurrentCulture for .NET). If you have MUI installed, in the second tab
(Languages) you will have an option called "Language used in menus and
dialogs." That is the UI locale for nls (CurrentUICulture for .NET)
So, as a user I expect the UI and formatting not to match.
Let me give you a good reason for that: most applications are not localized
in all the locales (there are 6 French locales, 5 German, 13 English, 19
Spanish). A user in U.K. wants to set his date/time/formats according to
the English U.K. rules, even if the UI is English U.S.
--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net ------------------------------------------