-1
I have the following field that returns me the date as follows: 09/17/2018 11:52 AM
How to put it inside the standard en. I have tried to put the .ToString("dd/MM//yyyy")
in the model.dtProtoclo
but it didn’t work.
<div class="form-group">
@Html.LabelFor(model => model.Dtprotocolo, htmlAttributes: new { @class = "control-label col-md-4" })
<div class="col-md-8">
@Html.TextBoxFor(model => model.Dtprotocolo, new { disabled = "disabled", @readonly = "readonly", @class = "form-control" })
@Html.ValidationMessageFor(model => model.Dtprotocolo, "", new { @class = "text-danger" })
</div>
</div>
I did not need to detail, only the comment below solved my problem
Possible duplicate of How to configure ASP.NET MVC validation to accept PT-BR dates?
– Leandro Angelo