title: Jquery datepicker returns NAN as timestamp
body: <p>I am using <strong>jquery datepicker</strong> to select a date and convert to timestamp (epoch time). The script works arbitrarily. It shows timestamp for dates from 1st to 12th of any chosen month but makes time 12:00am  of those days (I converted it online). But from 13th to the end of the month it shows <strong>NAN</strong> as timestamp. Strange enough when the date formated to dd/mm/yy all the days shows correctly.</p>
  
  <pre><code>$(function() {
      $("#datepicker").datepicker({dateFormat: 'dd-mm-yy',
          onSelect: function(dateText, inst) {
                var dtV = $(this).val();
                var d = new Date(dtV);
                var s = parseInt((d)/1000);
                $("#selectedDate").text("on " + dateText + "");
                $(".selectedDate2").text(s.valueOf());
          }
      });
  });
  </code></pre>