Jon Skeet [C# MVP] <(E-Mail Removed)> wrote in
news:(E-Mail Removed):
> Brad <(E-Mail Removed)> wrote:
>> Is there a way to determine the OS's date/time culture format (e.g.
>> mm/dd/yyy vs. dd/mm/yyy) setting at run time?
>
> CultureInfo.CurrentCulture.DateTimeFormat will give you a
> DateTimeFormatInfo which should have the info you need.
>
> In some situations, CurrentUICulture would be more appropriate. See the
> docs for more details.
Sorry to contradict, but in all situations dealing with formats
(number/date/time), CurrentCulture is the thing you need.
See "Two things that suck about CurrentUICulture"
http://blogs.msdn.com/michkap/archiv...0/1442340.aspx
--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email