Two datepickers. Change second datepicker to the value of the next day value of first day picker

Two datepickers. Change second datepicker to the value of the next day value of first day picker

Hi,

I have two date pickers.
On arrival date, one departure date.

When the value of the arrival date picker is changed, I want to change the departure date picker to be the arrival date value + 1 day.

I can't figure it out.
Here is my code.

  1. $("#arrivaldate").datepicker({
  2. showOn: 'button',
  3. buttonImage: 'images/calendar.gif',
  4. dateFormat: 'dd M yy',
  5. numberOfMonths: 3,
  6. minDate: 0,
  7. onSelect: function(dateText, inst) {  
  8.      var newDate = dateText;
  9.        $('#departuredate').datepicker('setDate', newDate);
  10.    },
  11. constrainInput: true,
  12. buttonImageOnly: true
  13. });


Can't figure out how to add 1 DAY to the variable newDate.

Any help apreciated.