title: Formatting a date using C# in an MVC3 application
body: <p>I have a model with a DateTime property:</p>
  
  <pre><code>public DateTime EndTime { get; set; }
  </code></pre>
  
  <p>In my controller, I assign that property to a value returned from my database:</p>
  
  <pre><code>aModel.EndTime = auction.EndTime.Value;
  </code></pre>
  
  <p>And in my View:</p>
  
  <pre><code>&lt;p class="time"&gt;@item.EndTime&lt;/p&gt;
  </code></pre>
  
  <p>Currently the date is returned as:</p>
  
  <pre><code>9/12/2011 --&gt; Month / Day / Year
  </code></pre>
  
  <p>I want it to display as:</p>
  
  <pre><code>12/9/2011 --&gt; Day / Month / Year
  </code></pre>
  
  <p>I'm sure the application is displaying the date according to the servers settings, but I do not wish to change that. How can I display the date like I want to in the second example?</p>