Why I get different date formats when I run my application through IIS and Visual Studio's web server on the same computer?
<p>I get the same culture i.e. "en-US" while running the website from both IIS and Visual Studio's web server.</p>

<p>But I get a different date format as follows, when I run the following code:</p>

<pre><code>HttpContext.Current.Response.Write(System.Threading.Thread.CurrentThread.CurrentCulture.ToString());
HttpContext.Current.Response.Write(System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern);
</code></pre>

<p>On Visual Studio's web server: dd/MM/yyyy en-US</p>

<p>On IIS: M/d/yyyy en-US</p>

<p>Does "Regional and Language Options" in "Control Panel" play any role in this ?
If I change the date format there in "Regional and Language Options", I see no effect in my application.</p>
