Answer the question
In order to leave comments, you need to log in
How to make a calendar in MVC?
Good afternoon, please help.
There was a problem when adding a calendar to the index page
1) There is a Sql table for the DateTo object and Date End, I assigned the date type Date (there is also a question, maybe it was necessary to leave string?
at the moment the code looks like this, I beg you to help me figure out how to this Razor syntax to make a correct calendar :D
<div class="form-group">
@Html.LabelFor(model => model.DateEnd, "Дата закінчення поїздки", htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.DateEnd, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.DateEnd, "", new { @class = "text-danger" })
</div>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question