I have in one view an inputbox on which I am using bootstrap-datetimepicker to capture the date, this DTP has the format 'YYYY / MM / DD':
<script type="text/javascript">
$(function () {
$('#datetimepicker1').datetimepicker({format:'YYYY/MM/DD', locale:'es-MX'});
});
</script>
When the view starts the controller sends a date value as '10 / 06/2016 'but the problem is that the view shows me' 0010/06/20 '.
If I change the format in the script, the date that the view is received through the controller is displayed correctly, but a problem arises when selecting a DateTimePicker value since any date higher than day 12 takes it as invalid. ..
'<script type="text/javascript">
$(function () {
$('#datetimepicker1').datetimepicker({format:'DD/MM/YYYY', locale:'es-MX'});
});
</script>'
How to solve this format problem?