title: bootstrap datepicker validation not working
body: <p>I am trying to use <code>bootstrap-datetimepicker.min.js</code> and I have successfully integrated it in my project. Yet, when I tryg to show today's date as a default value in the <code>from</code> input field, it is not working.</p>
  
  <p>Javascript:</p>
  
  <pre><code>var d = new Date();
  
  var currDate = d.getDate();
  var currMonth = d.getMonth();
  var currYear = d.getFullYear();
  
  var dateStr = currDate + "-" + currMonth + "-" + currYear;
  
  $('#from').datetimepicker({
      pickTime: false,
      defaultDate: dateStr
  });
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input type="text" placeholder="From" name="from" id="from" style="width: 90%"/&gt;
  
  &lt;input type="text" placeholder="To" name="to" id="to" style="width: 90%"/&gt;
  </code></pre>
  
  <p>AND with this I would also like to validate the date in <code>from</code> filed so that it should not be less than today's date and <code>to</code> date not less than tomorrow's date and not greater than 3 month date.</p>
  
  <p>I have searched for an answer on google and Stackoverflow already. Please help me.</p>