title: How do you set a default valut to input type = date with c# MVC
body: <p>I have a simple date field that i want to populate with a value from my database so my users can see the default before they edit:</p>
  
  <pre><code>&lt;input type = "date" name = "Date" style = "width:180px;" value="@ViewBag.Options.Date"/&gt;
  </code></pre>
  
  <p>Simply put, this doesnt popluate the date input. it works on all other forms of html5 inputs however, also worth noting that the <code>ViewBag.Options.Date</code> is a <code>DateTime</code> variable.</p>