title: Different DateTimeFormat for dev and test environment
body: <p>In the Application_BeginRequest() method of global.asax.cs in my ASP.NET MVC project there is code:</p>
  
  <pre><code>Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(EnCultureKey);
  Thread.CurrentThread.CurrentUICulture = new CultureInfo(EnCultureKey);
  Thread.CurrentThread.CurrentCulture.DateTimeFormat = new CultureInfo(EnGBCultureKey).DateTimeFormat;
  </code></pre>
  
  <p>The variables are </p>
  
  <pre><code>private const string EnCultureKey = "en-US";
  private const string EnGBCultureKey = "en-GB";
  </code></pre>
  
  <p>On the dev environment all the dates are in DD/MM/YYYY format, but on the test environment they are in MM/DD/YYYY format.</p>
  
  <p>Could You please advise me on what could be the cause of this difference?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Please take a look at <a href="https://stackoverflow.com/q/7216057/882162">Setting Culture for ASP.NET MVC application on VS dev server and IIS</a></p>