Hello again:
I have searched alot but maybe its an easy answer for specialists?
1)I need the datepicker like i think thats in the FAQ and kind of also here:
1a.)datepicker1 is set minimum today ....
1b.)datepicker2 is set minimum datepicker +1day .....
2.)datepicker1 if user selects date some day in the future
datepicker2 should switch date automatically future +1day (How to do?how to call this in google)
2a)
2b)
}
3.)how to also validate immideatly(before submit):
datepicker1 <datepicker2 and datepicker1 minimum "todays date"
I have searched alot but maybe its an easy answer for specialists?
1)I need the datepicker like i think thats in the FAQ and kind of also here:
1a.)datepicker1 is set minimum today ....
data-start_date=<?php echo date("d-m-Y"); ?>
1b.)datepicker2 is set minimum datepicker +1day .....
data-start_date=<?php $d = new DateTime('tomorrow'); echo $d->format("d-m-Y"); ?>
2.)datepicker1 if user selects date some day in the future
datepicker2 should switch date automatically future +1day (How to do?how to call this in google)
2a)
$("#datepicker1").on("select_date.gdatetimepicker", function(){
//event code here change datepicker2 +1day from datepicker1??
});
2b)
var startDate = new Date($('#datepicker1').val());
var endDate = new Date($('#datepicker2').val());
if (startDate < endDate){
// Do something
everything ok
}
3.)how to also validate immideatly(before submit):
datepicker1 <datepicker2 and datepicker1 minimum "todays date"