title: Date only from TextBoxFor()
body: <p>I'm having trouble displaying the only date part of a DateTime into a textbox using TextBoxFor&lt;,>(expression, htmlAttributes).</p>
  
  <p>The model is based on Linq2SQL, field is a DateTime on SQL and in the Entity model.</p>
  
  <p><strong>Failed:</strong></p>
  
  <pre><code>&lt;%= Html.TextBoxFor(model =&gt; model.dtArrivalDate, String.Format("{0:dd/MM/yyyy}", Model.dtArrivalDate))%&gt;
  </code></pre>
  
  <p>This trick seems to be depreciated, any string value in the object htmlAttribute is ignored.</p>
  
  <p><strong>Failed:</strong></p>
  
  <pre><code>[DisplayFormat( DataFormatString = "{0:dd/MM/yyyy}" )]
  public string dtArrivalDate { get; set; }
  </code></pre>
  
  <p>I would like to store and display only the date part on the details/edit view, without the "00:00:00" part.</p>