There is a calendar here

In this example, two calendars, the second restricts the choice of not less than the date of the first ...

Question: how to make in the first calendar a choice restriction min value = (current day + 1day), and in the second - min value restriction = (result of the first calendar + 1day)?

If today is 08.09, then you can choose from 09.09, if 09.09 is selected in the first, then dates from 10.09 are available in the second

    1 answer 1

    Jsfiddle

    $(function () { $('#datetimepicker1').datetimepicker({ minDate: moment().add(1, 'days') }).on('dp.change', function (selected) { $("#datetimepicker2").datetimepicker('minDate',selected.date.add(1, 'days')); $(this).datetimepicker('hide'); }); $('#datetimepicker2').datetimepicker({ minDate: moment().add(2, 'days') }).on('dp.change', function (selected) { $(this).datetimepicker('hide'); });; }); 

    Min.date is set using the minDate parameter. To begin with, we set them with a difference of 1 day between the first and second calendar. And then when changing the first calendar - the min. Date of the second calendar will change.