How to use ToShortDateString() on nullable datetime column
<p>How can I use <code>ToShortDateString()</code> method when a datetime column allow nulls?</p>

<p>I get the following error on this asp.net code <code>&lt;%= Model.EndDate.ToShortDateString() %&gt;</code> :</p>

<blockquote>
  <p>'System.Nullable' does not contain a definition for 'ToShortDateString' and no extension method 'ToShortDateString' accepting a first argument of type 'System.Nullable' could be found (are you missing a using directive or an assembly reference?) </p>
</blockquote>