title: How to call "onSelect" function for bootstrap3-datetimepicker? jQuery
body: <p>I am using Rails 4 and I have the <code>gem bootstrap3-datetimepicker-rails</code>installed.</p>
  
  <p>It is working fine, but I want to be able to do an <code>onSelect</code> call like I can with the normal bootstrap-datepicker.</p>
  
  <p>I want to be able to do something like this:</p>
  
  <pre><code>$("#start").datetimepicker({
      minDate: new Date()
  }).on("change", function(selectedDate) {
      $("#end").datetimepicker({ minDate: selectedDate });
  });
  
  $("#end").datetimepicker();
  </code></pre>
  
  <p>but the <a href="http://eonasdan.github.io/bootstrap-datetimepicker/Events/" rel="nofollow">documentation</a> is very vague and doesn't seem to include anything on this concept. I am still pretty surprised that this feature of validating start and end dates is not a native option in any date or time picker.</p>
  
  <p>How would I realize this?</p>
  
  <p><strong>Note</strong>: I am using bootstrap3-date<em>time</em>picker, not the regular bootstrap-datepicker and not jquery-datetimepicker.</p>
  
  <p>Side Note: I've always felt that the world's most ideal automatic datepicker validation would look something like this:</p>
  
  <pre><code>$("#start").datepicker({
      minDate: new Date(),
      endDate: "#end"  // Would automatically call $("#end").datepicker and set the minDate to whatever #start's selected date is
  });
  </code></pre>
  
  <p>I am considering creating my own branch to try and implement it because I feel that the concept of start and end dates is commonly ignored when datepickers are created but is so frequently needed.</p>