0
I have an inputText that I created for date, it is initially filled with a Datetime of my Model that is populated:
@Html.TextBoxFor(model => model.Data, "{0:dd/MM/yyyy}", new { @class = "form-control input-md", @id = "datetimepickerDataFato" })
And my datetimepicker javascript
$(document).ready(function () {
$('#datetimepickerDataFato').datetimepicker({
locale: 'pt-br',
format: 'DD/MM/YYYY',
allowInputToggle: true,
maxDate: Date.now()
});
});
My problem is that when this javascript code of the datetimepicker is read, it overwrites my date to today, and still considers the day as if it were month, ie I can not put any day that is bigger than 12.
Do you have 'en' in your locale file? You also tried to include
language: 'pt'
?– Ricardo Pontual
@Ricardopunctual It has the 'en' in locale yes. I tried to do the language scheme but it also did not work
– Wellington Fernandes