title: Given 2 bootstrap datetimepickers, how do I limit the range of one based on the other?
body: <p>I want to restrict the date picker of bootstrap. If I select a date from StartDate picker then I want the EndDate picker to only show dates and times up to 365 days ahead of the StartDate.  How can I achieve this?  Thanks in advance.</p>
  
  <p>So far, I have:</p>
  
  <pre><code>$(document).ready(function() {
    $('.form_datetime').datetimepicker({
      //language:  'fr',
      weekStart: 1,
      todayBtn: 1,
      autoclose: 1,
      startView: 2,
      forceParse: 0,
      showMeridian: 1,
      todayBtn: true,
      startDate: new Date(),
      initialDate: new Date(),
    });
  
    $('.form_time').datetimepicker({
      language: 'fr',
      weekStart: 1,
      todayBtn: 1,
      autoclose: 1,
      todayHighlight: 1,
      startView: 1,
      minView: 0,
      maxView: 1,
      forceParse: 0,
      endDate: '+365d'
    });
  });
  </code></pre>