title: How can I set the bootstrap-datetimepicker to Todays's date at 12AM
body: <p>I am trying to use the <a href="http://eonasdan.github.io/bootstrap-datetimepicker/Options/" rel="nofollow">bootstrap-datetimepicker</a> to allow the users to select date and time value using an easy tool.</p>
  
  <p>I created two pickers using <a href="http://eonasdan.github.io/bootstrap-datetimepicker/Options/" rel="nofollow">bootstrap-datetimepicker</a> and linked them together like so</p>
  
  <pre><code>//From Picker
  $('#ActionForm_LocalFrom').datetimepicker({
      format: 'MM/DD/YYYY LT',
  }).on("dp.change", function (e) {
      $('#ActionForm_LocalTo').data("DateTimePicker").minDate(e.date);
  });
  
  //To Picker
  $('#ActionForm_LocalTo').datetimepicker({
      format: 'MM/DD/YYYY LT',
      useCurrent: false //Important! See issue #1075
  }).on("dp.change", function (e) {
      $('#ActionForm_LocalFrom').data("DateTimePicker").maxDate(e.date);
  });
  </code></pre>
  
  <p>I need to change default date time on <code>$('#ActionForm_LocalFrom')</code> to be set to <code>9/24/2016 12:00 AM</code> and the default of <code>$('#ActionForm_LocalTo')</code> to <code>9/24/2016 11:59 PM</code>. Note that 9/24/2016 is today's date.</p>
  
  <p>How can I set the date to today's date and the time to 12:00AM for the "From" picker and "11:59 PM" for the "To" Picker?</p>
  
  <p>Here is what I tried here but it is not working</p>
  
  <pre><code>//From Picker
  $('#ActionForm_LocalFrom').datetimepicker({
      format: 'MM/DD/YYYY LT',
  }).on("dp.change", function (e) {
      $('#ActionForm_LocalTo').data("DateTimePicker").minDate(e.date);
  }).defaultDate(moment().startOf('day'));
  
  //To Picker
  $('#ActionForm_LocalTo').datetimepicker({
      format: 'MM/DD/YYYY LT',
      useCurrent: false //Important! See issue #1075
  }).on("dp.change", function (e) {
      $('#ActionForm_LocalFrom').data("DateTimePicker").maxDate(e.date);
  }).defaultDate(moment().endOf('day'));
  </code></pre>