title: Materialize datepicker - Set max date as 30 days from min date selected from another date input box?
body: <p>I want to display the max date as 30 days from the selected start date from another datepicker input box. </p>
  
  <pre><code>$('.datepicker').pickadate({ 
          selectMonths: true, // Creates a dropdown to control month
          closeOnSelect: true,
          closeOnClear: true,
          format: 'yyyy-mm-dd',
          onSet: function (ele) {
             if(ele.select){
                    this.close();
             }
  
          var d1 = $('#reqstartdate').val();
          var d2 = $('#reqenddate').val();
  
          var date1 = new Date(d1);
          var date2 = new Date(d2);
  
  },
           min: true,
           max:+30,   
  }); 
  </code></pre>
  
  <p>The above code displays min date as today's date for both date input boxes, and today's date + 30 days as maximum. </p>
  
  <p>Getting dates from textboxes are also included above.</p>
  
  <p>I want the second date to have + 30 days from the input from first date box. 
  Is it possible in Materialize datepicker? </p>