Click here to Skip to main content
15,887,328 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hi,

I have create a website in asp.net 3.5, and deployed it to an XP machine, everything seemed to work fine. When, i deployed in Windows Server 2003 machine. I noticed that getting dates displayed in dd/mm/yyyy format. In website i am using ajax calendar control and date validation mm/dd/yyyy format. Now i need to check the date validation to mm/dd/yyyy format how can i change the server culture in IIS/Windows Server 2003. I have changed the Web.config file as shown bellow.

<globalization><br />
    requestEncoding="utf-8"<br />
    responseEncoding="utf-8"<br />
    culture="en-GB"<br />
    uiCulture="en-GB" /></globalization>


Thanks
Jeevan.
Posted

This[^] thread may help.
 
Share this answer
 
alway use Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900