I have date format in my local machine : (d/M/yyyy h:mm tt) ==> (23/6/2011 4:30 PM)
when i publish my website on IIS server it converts date format to (M/d/yyyy H:mm
Please try the below steps.Its works for me
- Open IIS 7
- Select your website
- Open .NET GLOBALIZATION
- From Culture tab, select required Culture and UI Culture.
- Do iisreset
I was having the same problem, I just found a solution, you need to change the key on the server, follow this steps:
That should do the trick, you can also change the sLongDate.
Even after setting application locale it was still picking up the application pool users locale. I had to change the region settings for all users. This screen shot might help...
Try to put this line in the system.web of the web.config, modify the data of culture to your country.
<globalization uiCulture="es-CO" culture="es-CO" enableClientBasedCulture="false" />