title: bootstrap datepicker invalid date issue when i click date twice?
body: <p>I'm using bootstrap datepicker and I got invalid date issue in a specific case. If I click today date it works fine but when I click the same date again it gives out invalid date issue.</p>
  
  <p>Same is the case for all the dates as I have seen other plugins where I can't find this issue.</p>
  
  <p>html:
      <code>&lt;input id="dp1" type="text" class="form-control input-sm"  placeholder="Data CheckIn"&gt;</code></p>
  
  <p>javascript:</p>
  
  <pre><code>$("#dp1").datepicker({
      format: "mm-dd-yyyy",
      viewMode: 'days',
      todayHighlight: true 
  }).on('changeDate', function (ev) {
      var a = $('#dp1').datepicker('getDate');
      $(this).datepicker('hide');
      alert(a);
  });
  </code></pre>
  
  <p><a href="http://jsfiddle.net/FTpYk/321/" rel="noreferrer" title="jsfiddle">jsfiddle example</a></p>