title: jquery datepicker date +1 is adding 10 days
body: <p>I have following code</p>
  <pre><code>$(&quot;#in&quot;).datepicker({
      minDate: 0,
      onSelect: function (dateText, inst) {
          dateText = new Date(dateText);
          dateText = dateText.getDate()+1;
          $('#out').datepicker(&quot;option&quot;, 'minDate', dateText);
      }
  });
  </code></pre>
  <p>Example:
  <a href="https://jsfiddle.net/ANYTA/1/" rel="nofollow noreferrer">https://jsfiddle.net/ANYTA/1/</a></p>
  <p>However, the <code>out</code> datepicker is adding 10 days instead of 1 day. What could be modified to make it work as intended? thank you very much</p>