datepicker

datepicker

 
WE HAVE:
1. Datepicker = Arrival Date ---> SETTING TODAY | Var: "datepicker"
2. Datepicker = Departure Date -->SETTING TODAY+1 DAY | Var "datepicker2"
 
 
PROBLEM:
When i change the "ARRIVAL DATE" then the "DEPARTURE DATE" should be +1 automaticly.
I'm not getting it working :(.
 
WHAT I DID:
 
--> first i have to get the date
test = jQuery("#datepicker").datepicker("getDate");
 
-->then i set the date to the current date
jQuery("#datepicker2").datepicker("setDate" , test);
 
-->then i tried to set the DAY+1
jQuery("#datepicker2").datepicker("setDate" , 1+"d" );
 
-->but it's not working :(  //
-->i also tryed to change the TODAY date with: 
 
jQuery("#datepicker2").datepicker("option", "defaultDate", test);
jQuery("#datepicker2").datepicker("option", "gotoCurrent", true);
 
but it's also not working :( - it would be more then nice if somebody can help me :( - im searching for my error since 4 hours :(
 
thanks for help!