title: Displaying DateTime picker instead of Date picker in ASP .NET MVC 5.1/HTML 5 specific
body: <p>I write application in ASP .NET MVC 5.1</p>
  
  <p>I have a field:</p>
  
  <pre><code>  [DisplayName("Date of Birth")]
    [DataType(DataType.Date)]
    public DateTime BirthDate { get; set; }
  </code></pre>
  
  <p>and then in View</p>
  
  <pre><code>  &lt;div class="form-group"&gt;
              @Html.LabelFor(model =&gt; model.BirthDate, htmlAttributes: new { @class = "control-label col-md-2" })
              &lt;div class="col-md-10"&gt;
                  @Html.EditorFor(model =&gt; model.BirthDate, new { htmlAttributes = new { @class = "form-control" } })
                  @Html.ValidationMessageFor(model =&gt; model.BirthDate, "", new { @class = "text-danger" })
              &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>which translates to:</p>
  
  <p><img src="https://i.stack.imgur.com/abdlU.png" alt="enter image description here"></p>
  
  <p>if I just change annotiations above property in model to:</p>
  
  <pre><code>    [DisplayName("Date of Birth")]
      [DataType(DataType.DateTime)]
  </code></pre>
  
  <p>I don't get any picker displayed. If I change them to:</p>
  
  <pre><code> [DisplayName("Date of Birth")]
   [DataType(DataType.Time)]
  </code></pre>
  
  <p>there is only hh:mm to choose from.</p>
  
  <p><strong>Question:</strong> Displaying DateTime picker instead of Date picker in ASP .NET MVC 5.1. I am asking for ASP .NET 5.1 HTML 5 specific solution.</p>