In this case, 2 datepickers are there. Disable all previous dates in datepicker according to the date selected
$('#first_date').datepicker({
format: 'dd MM, yyyy',
autoclose: true,
startDate: Data.startdate,
endDate: '0d'
})
$('#second_date').datepicker({
endDate: '0d'
});