How to set #endDatePicker 1 month to the future of the selected date from #startDatePicker?
I do not understand this, but I am sure it is easier than I do it.
Here is what I start with. Now I need a function that calculates exactly 1 month (not only 30 days) in the future based on the selected date from #startDatePicker.
$("#startDatePicker").datepicker({
minDate: +0,
});
$("#endDatePicker").datepicker({
minDate: '+1m',
beforeShow: customMinDate
});
Any help was appreciated.
source
share