title: Could not parse date parameter: Invalid Date issue in Safari and Firefox
body: <p>I am trying to set the default date parameter in Bootstrap DateTimePicker. Please see the code below </p>
  
  <pre class="lang-js prettyprint-override"><code>date = $('#drop-off').val(); // "04-07-2018  4:22 PM"
  date = moment(date);
  date = date.toDate();
  $(a).datetimepicker({
      format: 'MM-DD-YYYY hh:mm A',
      defaultDate: date
  });
  </code></pre>
  
  <p>This works good in Chrome, buts throws an error both in Safari and Firefox</p>
  
  <pre><code>TypeError: defaultDate() Could not parse date parameter: Invalid Date
  </code></pre>
  
  <p>Is this an issue with the time format that I pass to the moment function?</p>