title: datepicker convert to timestamp keeping format for display
body: <p>I have the following calendar script(jQuery) and it works. Next I like to save the user selection to the database.
  Database filed  type is : timestamp.</p>
  
  <p>I like to keep the current date format found in the script for display in the input field for user readability
   but in the background i like to convert it to a timestamp , so that i 
   can save it to the database. how do i go about converting it to a timestamp?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function(){
       $("#date").datepicker({
          showButtonPanel: true,
          minDate: '0M',
          maxDate: '+90D',    
          dateFormat: "d-MM-yy",  
         });
  });
  &lt;/script&gt;
  
  &lt;p&gt; Enter project expire date: &lt;input type="text" name="date" id="date"/&gt;&lt;/p&gt;
  </code></pre>