title: jQuery datepicker minDate variable
body: <p>I'm usung the jQuery datepicker. In my "EndDate" textbox I'd like to use the date selected from the the "StartDate" textbox + 1. How do I do this?</p>
  
  <p>I tried this but didn't work. In my start date code I had...</p>
  
  <pre><code>            test = $(this).datepicker('getDate');
              testm = new Date(test.getTime());
              testm.setDate(testm.getDate() + 1);
  </code></pre>
  
  <p>Then in my end date code I had...</p>
  
  <pre><code>minDate: testm,
  </code></pre>
  
  <p>but the end date still made all the days for the month available.</p>
  
  <hr>
  
  <p><strong>Edit.</strong> I'm curious as to why this doesn't work. In my start date datepicker I have this..</p>
  
  <pre><code>onSelect: function (dateText, inst) {
      test = dateText
  }
  </code></pre>
  
  <p>Why can't I come down into my end date datepicker and say, <code>minDate: test</code>?</p>
  
  <hr>
  
  <p><strong>Edit.</strong> Still not working</p>
  
  <pre><code>    $(".dateStartDatePickerBox").datepicker({
          minDate:'-0d',
          onSelect: function(dateText, inst)
          {
              test = $(this).datepicker('getDate');
              testm = new Date(test.getTime());
              testm.setDate(testm.getDate() + 1);
  
              $("#dateEndDatePickerBox").datepicker("option", "minDate", testm);
          }
      });
  
      $(".dateEndDatePickerBox").datepicker({
          onSelect: function()
          {
  
          }
      });
  </code></pre>