Last post Apr 02, 2008 03:55 PM by vivek_iit
Apr 02, 2008 09:59 AM|CurtWRC|LINK
I put the following code in my web.config file:
<globalization culture="en-GB" uiCulture="en-GB" requestEncoding="utf-8" responseEncoding="utf-8" />
However it stores the date in database for April 2nd 2008 as 04/02/2008. So when I format it it comes out as 4th February 2008.
Whats going on and how can I fix this?
Apr 02, 2008 03:55 PM|vivek_iit|LINK
How are you storing the date in the database? A DBs collation decides how to store it. Default is US format. So you will have issues when your web app has en-GB and DB has US format. You will need to manually convert it to ddmmyyy format. See this post for