title: Remove time from datepicker in Edit mode MVC
body: <p>I tried different pieces of code to solve this issue but they don't work exactly how I want. I've tried</p>
  
  <pre><code>@Html.TextBoxFor(model =&gt; model.Date, "{0:MM/dd/yyyy}", new { id="datepicker" })
  </code></pre>
  
  <p>and</p>
  
  <p>changing my TextBoxFor to EditorFor while using jquery</p>
  
  <pre><code>$("#datepicker1").datepicker({ dateFormat: "dd-mm-yy", changeMonth: true, changeYear: true });
  </code></pre>
  
  <p>When I do either of these the date returns fine without the time (i.e 4-12-14), however I loose the functionality of my datepicker calendar. If I don't use them my datepicker calendar works fine however I end up with 4-12-14 00:00:00 in my edit textbox.</p>
  
  <pre><code>The code from my Model is:
  
   [Display(Name = "Date")]
      [DisplayFormat(DataFormatString = "{0:dd/MM/yyy}", ApplyFormatInEditMode = true)]
      public Nullable&lt;System.DateTime&gt; Date { get; set; }
  </code></pre>
  
  <p>Any ideas how to solve this?</p>