new server 2003 installation using American dateformat

G

Grant Merwitz

Hi

I have installed my web app on a Windows 2003 server.
The Regional and Language was originally set to American.

Now we have changed it to UK, and are trying to get the DateFormat right.

However, my Web app is not accepting dates of format dd/MM/yyyy only
MM/dd/yyyy

HOw can i changes this.
It reads the right format in the Regional and Language settings in control
panel.

When i do a DateTime.Now.ToString() it produces 8/18/2005 4:09:13 PM instead
of 18/8/2005 4:09:13PM

Please help
 
J

Juan T. Llibre

Change the culture and UIculture settings in web.config to "en-GB".



Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top