I need to use datepicker on an EditorFor field.
My code for the view is:
@Html.Label(\"birthDate\",\"birthDate
I had a simmilar issue, solved by using the HTML5 functionality, that has support for datetime, in your example I would suggest trying somthing like this:
@Html.Label("birthDate","birthDate")
@Html.EditorFor(model => model.birthDate, new { @class = "datepicker", type="datetime-local"})
@Html.ValidationMessageFor(model => model.birthDate)
the only thing that I addes is a type ="datetime-local"