title: @Html.DisplayFor - DateFormat ("mm/dd/yyyy")
body: <p>I have the following razor code that I want to have <code>mm/dd/yyyy</code> date format: </p>
  
  <pre><code>Audit Date: @Html.DisplayFor(Model =&gt; Model.AuditDate)
  </code></pre>
  
  <p>I have tried number of different approaches but none of that approaches works in my situation </p>
  
  <p>my AuditDate is a <code>DateTime?</code> type</p>
  
  <p>I have tried something like this and got this error:</p>
  
  <pre><code>@Html.DisplayFor(Model =&gt; Model.AuditDate.Value.ToShortDateString())
  </code></pre>
  
  <p>Additional information: Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions.</p>
  
  <p>Tried this:</p>
  
  <pre><code>@Html.DisplayFor(Model =&gt; Model.AuditDate.ToString("mm/dd/yyyy"))
  </code></pre>
  
  <p>No overload for method 'ToString' takes 1 arguments</p>