title: Bootstrap DatePicker Limit startdate dynamically
body: <p>I have 2 date pickers which are used to pick the start date and return date. </p>
  
  <p>I would like to limit the return date using the start date value e.g if I pick 15/7/2019, then the return date should start from 16/7/2019. This should be dynamic. </p>
  
  <p>I  tried the  following implementation : </p>
  
  <pre><code>var returndate = new Date();
  returndate.setDate(returndate.getDate() + 1);
  $('.travel-depature-dates').datepicker({
      autoclose: true,
      todayHighlight: true,
      startDate: returndate,
      beforeShowYear: function (date) {
  
      },
      toggleActive: true,
      format: 'dd/mm/yyyy',
  }).on('changeDate', function (e) {
      return_datepicker();
  });
  
  function return_datepicker() {
      var departure_date = $(".departure_date").val();
  
      var minimum_date = new Date();
      minimum_date.setFullYear(minimum_date.getFullYear() - 1);
  
      console.log("Departure date =&gt; " + departure_date);
  
  
      $('.travel-return-dates').datepicker({
          autoclose: true,
          todayHighlight: true,
          startDate: departure_date,
          toggleActive: true,
          format: 'dd/mm/yyyy'
      });
  
  }
  </code></pre>
  
  <p>However, the output for the return date does not apply the limit of the departure date. </p>
  
  <p>How can I limit the return, start date using the value selected from the return date? </p>