title: jquery datepicker set mindate
body: <p>I have two jQuery datepickers to select a <strong>from</strong> and <strong>to</strong> dates. I have the following code that if you select the 15th June in the first then in the second you now can only select from the 15th onwards.</p>
  
  <p>The issue I have is I really need to set the <strong>to</strong> datepicker to +1 day. So the user could only select 16th onwards.</p>
  
  <p>My skills are not advanced enough to add the date to the parseDate</p>
  
  <pre><code>    $(function() {
          var dates = $( "#from_date, #to_date" ).datepicker({
          dateFormat: 'dd-mm-yy',
          minDate: 0,
          onSelect: function( selectedDate ) {
              var option = this.id == "from" ? "minDate" : "maxDate",
              instance = $( this ).data( "datepicker" ),
              date = $.datepicker.parseDate(
              instance.settings.dateFormat ||
              $.datepicker._defaults.dateFormat,
              selectedDate, instance.settings );
              dates.not( this ).datepicker( "option", option, date );
              }
      });
      }); 
  </code></pre>