title: Can my MVC view display only the date portion of a SQL datetime field?
body: <p>I have an ASP.NET MVC4 application that is displaying the full datetime value from SQL (e.g. "1/1/2012 12:00:00 AM") and I'm trying to get it to only display the date (e.g. "1/1/2012").</p>
  
  <p>My Index.cshtml file for the view in question pull the item in using this code:</p>
  
  <pre><code>@Html.DisplayFor(modelItem =&gt; item.OccurrenceDate)
  </code></pre>
  
  <p>Is there a way to modify this to only show the date?</p>