Last post Feb 20, 2008 05:55 PM by valuja
Feb 19, 2008 10:42 AM|amardilo|LINK
I am not too sure if this is the right place to post this but here goes anyway (if not can someone move it).....
I have a ASP.NET website (made up of several pages and class libraries) to show and read in dates in DD/MM/YYYY format so I added the following to the web.config:
<globalization uiCulture="en" culture="en-GB"/>
When I run my website in Visual Studio it runs fine and dates are read in and displayed in the correct format however if I install my website on my own machines IIS it reads in dates and displays them in MM/DD/YYYY format.
Is there an easy way around this? I don't want to have to go through my system and add in a culture to every "Convert.ToDateTime" line in every page and class library.
Feb 20, 2008 05:55 PM|valuja|LINK
You could use tha following code and use that in your Global.asax.cs file:
Hope that this helps.