title: Convert date to unix timestamp through jQuery datepicker
body: <p>I want to check whether the entered dob is above 18th old. For that i want to convert to convert the entered date to the unix time stamp. I tried using:</p>
  
  <pre><code>$.datepicker.formatDate('@', $('#dob').val());
  </code></pre>
  
  <p>But it gives three additional zeros and also goes one day earlier. Like for "10/10/1967" it returns: -70369200000 while it should return: -70329600. How should i change it?</p>