title: Binding nullable datetime in MVC with String format
body: <p>i am unable to solve problem from last two days.</p>
  
  <pre><code>@Html.TextBoxFor(model =&gt; model.myObject.dateAssign, String.Format("{0:MM/dd/yy}"))
  </code></pre>
  
  <p>here, dateAssign is nullable datetime. it may be or maybe not have value.</p>
  
  <p>i am keep getting following  error</p>
  
  <pre><code>Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
  </code></pre>
  
  <p>please give me some hint or direction</p>