1
Good person, the scene is that I have here the script that makes that when making a reservation, you can not select the day of yesterday, and such . ,.. but when I see the date appears in the format MM-DD-YYYY
, and I don’t know how to make it stay 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)
}
});
});
Good afternoon, use relevant question tags and not your entire project.
– Guilherme Nascimento
Related : http://answall.com/questions/6526/como-formatr-data-no-javascript ?
– Guilherme Lautert