Dear All,
I am currently stuck with two date pickers in an MVC (NET 4.8) form. I added two date pickers, one to get a start date, the other one to get an end date. Both dates can be used for querying a database. While creating the form I saw the option for using EJS().DatePickerFor(m => m.StartDate) to directly access a model.
So far this has been working great, however, I am facing the following issues:
1. I would like both components to display translations for Today and for the months as well.
2. Moreover, having selected the date, the latter is being display in the following format : /M/d/yyyy. How can change I change the display format to dd.MM.yyyy?
Please do take into account the following snippet for the form mentioned above:
@using (Html.BeginForm("CheckImports", "ImportCheck", FormMethod.Post, new { id = "dateChecker" }))
{
<div class="form-group">
@Html.LabelFor(p => p.StartDate)
@Html.EJS().DatePickerFor(m => m.StartDate).Width("255px").Render()
@Html.LabelFor(p => p.EndDate)
@Html.EJS().DatePickerFor(m => m.EndDate).Width("255px").Render()
</div>
@Html.AntiForgeryToken()
[...]
<btn>...
}
Thanks a mil in advance for your help
Kind regards
Chris