How to get selected date + 1day with datepicker??

How to get selected date + 1day with datepicker??

Hello,

I am using datepicker and i have two input fields (i.e. Arrival and Departure). How do i set Departure date to be arrival Date + 1 day??

i have the following function with arrival onClose

  1. function clearEndDate(){               
                        var date = arrival.datepicker('getDate');
             
                        departure.datepicker('setDate',date);
                    }



Which set the departure date to be equal to arrival date.

any suggestions?