title: convert my date to timestamp in javascript
body: <p>How to convert my date to timestamp i dont know where im doing wrong.Any suggestion please ?</p>
  
  <pre><code>var dates = '27-04-2015';
  var date1 = new Date(dates).getTime();
  alert(date1);
  </code></pre>