title: How to limit Min-Max Time in bootstrap datetimepicker
body: <p>How to limit</p>
  
  <p>I'm trying to limit the time a user can select from this plugin: <a href="https://github.com/Eonasdan/bootstrap-datetimepicker" rel="noreferrer">https://github.com/Eonasdan/bootstrap-datetimepicker</a></p>
  
  <p>I've searched around this site and google for similar questions, but users generally ask for the validation to work between one known period and another known period. e.g 9:00 - 21:00 2015/03/09 9:00 - 2015/03/10 21:00. If a user inputs 2015/03/09 23:00 the validation will pass this because the time is within those two min/max periods.</p>
  
  <p>I need it to work as a booking system works, so that each day is limited between those times. e.g if a user selects 2015/03/09 23:00 or 2015/03/10 5:00 then the validation won't pass, it will only pass on any day between 9:00 &amp; 21:00.</p>
  
  <pre><code>    $('.datetimepicker').datetimepicker({
         stepping: 30,
         minDate: moment({hour: 9, minute: 30}),
         format: 'YYYY-MM-DD HH:mm'
      });
  </code></pre>
  
  <p>This starts the min date for today at 9:30am, but if I was to choose any day after today I would be able to select for example 4am - anything under 9:30am</p>