title: @html.TextBoxFor model value is not setting/prefilled/appearing for the type date
body: <p>I have an <code>@html.TextBoxFor</code> where the type I have specified is date. On rendering the view the model value (which is coming from database) is not setting.</p>
  <p>My code looks as follows.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;tr&gt;
    &lt;td&gt;@Html.Label("ReferenceId")&lt;/td&gt;
    &lt;td&gt;@Html.TextBoxFor(m =&gt; m.ReferenceId, new { @class = "form-control" })&lt;/td&gt;
    &lt;td&gt;@Html.ValidationMessageFor(m =&gt; m.ReferenceId, null, new { @style = "color:red" })&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;@Html.Label("End Date")&lt;/td&gt;
    &lt;td&gt;@Html.TextBoxFor(m =&gt; m.EndDate, "{0:MM/dd/YYYY}", new { @class = "form-control", type = "date"})&lt;/td&gt;
    &lt;td&gt;@Html.ValidationMessageFor(m =&gt; m.EndDate, null, new { @style = "color:red" })&lt;/td&gt;
  &lt;/tr&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>This is how view looks after loading model data:</p>
  <p><a href="https://i.stack.imgur.com/2cCvZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2cCvZ.png" alt="enter image description here" /></a></p>
  <p>As it can be seen reference id is populating but date is not. I need help in setting model value to the date field.</p>