I have an ASP.NET 2 site, developed in VS2005, running on XP Pro SP2, with IIS 5.1, IE7.
In the UK, so want european style dd/MM/yyyy date formats.
Language is set to UK english (en-GB) in windows control panel and web.config.
When I run the pages inside VS2005, or in VWD express, they display as I would hope and expect.
If I open the pages directly in IE7 as http://localhost/etc the dates are displayed in MM/dd/yyyy format.
I added code to display the culture and UI-culture settings on the page - always reports English (United Kingdom) whichever way the dates come out.
I have tried
<
globalization uiCulture="en-GB" culture="en-GB"/>
and
<
globalization culture="auto" uiCulture="auto" enableClientBasedCulture="true"/>
in the web.config file
I have also tried setting culture and uiculture on each page. Made no difference.
If I copy the pages and data base to another machine running what seems to be the same software, the pages always display dates in the desired dd/MM/yyyy format, regardless of whether I view them from VWD or start IE7 from the start menu.
Is there a language/culture setting somewhere for IIS that I don't know about?
Any other suggestions?
If a post helps to solve your problem, please click the Answer button on that post.
I'm still confused, but now I'm confused on a higher plane.