M
Murray
I have put the following code in two pages:
Thread.CurrentThread.CurrentUICulture=new CultureInfo("en-GB");
Response.Write(CultureInfo.CurrentUICulture.EnglishName);
Response.Write(CultureInfo.CurrentUICulture.DateTimeFormat.ShortDatePattern);
Response.Write(DateTime.Now.ToShortDateString());
in one page I get:
English (United Kingdom)M/d/yyyy30/03/2004
in the other I get:
English (United Kingdom)M/d/yyyy3/30/2004
Exactly the same code in the Page_Load on the same machine!
Both have the same Culture settings in the web.config
A part from the ShortDatePattern being wrong for the en-GB...
What is going on here?
Thanks
Murray
Thread.CurrentThread.CurrentUICulture=new CultureInfo("en-GB");
Response.Write(CultureInfo.CurrentUICulture.EnglishName);
Response.Write(CultureInfo.CurrentUICulture.DateTimeFormat.ShortDatePattern);
Response.Write(DateTime.Now.ToShortDateString());
in one page I get:
English (United Kingdom)M/d/yyyy30/03/2004
in the other I get:
English (United Kingdom)M/d/yyyy3/30/2004
Exactly the same code in the Page_Load on the same machine!
Both have the same Culture settings in the web.config
A part from the ShortDatePattern being wrong for the en-GB...
What is going on here?
Thanks
Murray