Good person, the scene is that I have here the script that makes when making a reservation, you can not select the day of yesterday, and such, .. but when I go to see the date appears in the format MM-DD-YYYY
, and I do not know how to make it DD-MM-YYYY
//Script para que só se possa selecionar a data de hoje
$(document).ready(function(){
$("#StartDate").datepicker({
minDate: 0,
maxDate: "+60D",
numberOfMonths: 1,
onSelect: function(selected) {
$("#txtToDate").datepicker.formatDate("dd-mm-yy","option","minDate", selected)
}
});
//Script para que só se possa selecionar o dia de amanhã e os restantes
$('#EndDate').datepicker({
minDate: 0,
maxDate:"+60D",
numberOfMonths: 2,
onSelect: function(selected) {
$("#StartDate").datepicker("option","maxDate", selected)
}
});
});