date with difference of day according to the selection

hi,

try adding these two lines inside the onReady event handler

$w(" #datepicker1 “).minDate = addDays(0);
$w(” #datepicker2 ").maxDate = addDays(2);