I\'m having a problem when I deploy my web application in different servers. There seems to be an inconsistency in some DateTimeFormat
patterns, like Shor
Actually, I was trying to use the code above in the wrong place in the Global.asax file.
I managed to override the ShortDatePattern for the entire aplication by putting the code in the Application_BeginRequest method:
protected void Application_BeginRequest()
{
CultureInfo info = new CultureInfo(System.Threading.Thread.CurrentThread.CurrentCulture.ToString());
info.DateTimeFormat.ShortDatePattern = "dd/MM/yyyy";
System.Threading.Thread.CurrentThread.CurrentCulture = info;
}