title: TextBoxFor show date without time
body: <p>I want to show date in text field in format <strong>MM/dd/yy</strong>. I described model class as:</p>
  
  <pre><code>public class VacancyFormViewModel
  {
      public int? ID { get; set; }
      [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:MM/dd/yy}")]
      public DateTime SurgeryDate { get; set; }
  </code></pre>
  
  <p>Of course, I can use <code>EditorFor</code> instead of <code>TextBoxFor</code>:</p>
  
  <pre><code>@Html.EditorFor(p =&gt; p.SurgeryDate, new { @class = "form-control" })
  </code></pre>
  
  <p>Problem is css styles, customer wants apply bootstrap styles, which are broken:</p>
  
  <p><img src="https://i.stack.imgur.com/PouPN.jpg" alt="enter image description here"></p>
  
  <p>if I set <code>TextBoxFor</code> instead of <code>EditorFor</code> I get the date with time:</p>
  
  <pre><code>@Html.TextBoxFor(p =&gt; p.SurgeryDate, new { @class = "form-control" })
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/AQtRq.jpg" alt="enter image description here"></p>
  
  <p>Any way to solve my problem? Or apply styles for <code>EditorFor</code>, or show <code>TextBoxFor</code> without time, or third way?</p>