I´m making an MVC5 site, as you already know. And now I just created a View using Crete template that has a BirthDate Field. Andit is not showing in IE and shows horibly in Chrome with lots of gliphs inside the textbox as you can compare in the image below.
What is going on and how can I make IE to show a date picker just as easy as Chrome does, and how to clena it up a bit. Those levers I think are useless and confusing.
Here is how I defined that property in my model
[Display(Name = "Fecha de nacimiento")]
[DataType(DataType.Date)]
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:MM/dd/yyyy}")]
public DateTime BirthDate { get; set; }
and in the View
<div class="form-group">
@Html.LabelFor(model => model.BirthDate, new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.BirthDate)
@Html.ValidationMessageFor(model => model.BirthDate)
</div>
</div>