title: asp.net mvc How to display default value on a date type textbox
body: <p>I'm developing in asp.net mvc.
  I want to have a textbox which is date type, so there's a shortcut that user can click and select a date instead of type in. Meanwhile I want the textbox to display a default date value.</p>
  
  <p>I have tried 2 ways:
  <code>&lt;input type="date" name="toDate" value="@DateTime.Today.Date.ToShortDateString()" /&gt;</code></p>
  
  <p><code>@Html.TextBox("date", DateTime.Now.ToShortDateString(), new { type = "date"})</code></p>
  
  <p>But these two methods generate textbox with 'dd/mm/yyyy' displaying in the box instead of the the default value I set. When I right click on the textbox and inspect element, I can see that there is a value of current date, but it can't show in the textbox!</p>
  
  <p>When I replace the <code>type="date"</code> to <code>type="text"</code>, I can see the default value on textbox. But there's no shortcut for me to select a date, it only allows me to type in.</p>
  
  <p>How do I do this to reserve both the shortcut and default value?</p>