title: ASP.NET MVC displaying date without time
body: <p>I have my model field decorated in the following way:</p>
  
  <pre><code>[DataType(DataType.Date)]
  [Display(Name = "Date of birth")]
  public string DateOfBirth { get; set; }
  </code></pre>
  
  <p>When I want to display the value in the view using the following code:</p>
  
  <pre><code>&lt;%: Html.DisplayFor(m =&gt; m.DateOfBirth) %&gt;
  </code></pre>
  
  <p>The problem is that the date is displayed together with its time value. I wonder why it does not take DateType attribute into consideration and displays only the date value without time. I know that I may create a display template for DateTime but in other cases than date of birth I want to show time together with date. How to solve the problem?</p>