title: Bootstrap datepicker - Parse date
body: <p>I'm using the pretty good <a href="https://github.com/eternicode/bootstrap-datepicker" rel="noreferrer">eternicode's/bootstrap-datepicker</a> jQuery plugin.</p>
  
  <p>I'm trying to use the included <a href="https://github.com/eternicode/bootstrap-datepicker/blob/master/js/bootstrap-datepicker.js#L947" rel="noreferrer">DPGlobal</a> tools to do some date operations.</p>
  
  <p>Example:</p>
  
  <pre class="lang-js prettyprint-override"><code>dpg = $.fn.datepicker.DPGlobal;
  date_format = 'dd/mm/yyyy';
  date_str = '31/12/2013';
  console.log(dpg.parseDate(start, date_format));
  </code></pre>
  
  <p>returns me (on firefox)</p>
  
  <blockquote>
    <p>TypeError: format.parts is undefined</p>
  </blockquote>
  
  <p>What am I doing wrong ?</p>
  
  <hr>
  
  <p>Check out <a href="http://jsfiddle.net/LcrJR/" rel="noreferrer">my fiddleable</a> example</p>