title: Jquery datepicker doesn't getTime if selected over the 12th
body: <p>So I have a datepicker and I am trying to get the time of the date selected, but it only seems to work if the date selected is under the 12th of the month. If you select anything over the 12th it doesn't return a time, does anyone know why?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('.date-selected').datepicker({
   dateFormat: 'dd/mm/yy',
   
  onSelect: function(date) {
  
  var cDate = new Date($('.date-selected').val()).getTime();
  $(".test-time").text(cDate);
  
  }
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" /&gt;
  &lt;script src="https://code.jquery.com/jquery-3.1.0.js"&gt;&lt;/script&gt;
  &lt;script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"&gt;&lt;/script&gt;
  
  &lt;input class="date-selected" value="29/10/2019"&gt;
  &lt;div class="test-time"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>