title: Display only date and no time
body: <p>In MVC razor, I am putting current date in the database like this..</p>
  
  <pre><code>model.Returndate = DateTime.Now.Date.ToShortDateString();
  </code></pre>
  
  <p>Since the database field is a datetime datatype and I am converting the current date to string format, this is not working.. how can I do this? I am doing the string format because I want the date in mm/dd/yyyy format and not in mm/dd/yyyy hh:mm:ss time format..</p>
  
  <p>EDIT:</p>
  
  <p>In the controller I have </p>
  
  <pre><code>var model = new ViewModel();
  model.ReturnDate = DateTime.Now;            
  return PartialView("PartialView", model);  
  </code></pre>
  
  <p>In the partialview, I have </p>
  
  <pre><code>@Html.EditorFor(model =&gt; model.Returndate)
  </code></pre>
  
  <p>This is where its displaying the date as Date and Time together... I want just the date to be displayed. Not the time. I hope this edit explains better.</p>