title: jQuery UI - Convert jQuery UI Datepicker to UNIX time
body: <p>I'm using jQuery UI datepicker with time plugin. This is how I display time on the page in datepicker itself:</p>
  
  <pre><code>21.06.2012 08:00
  </code></pre>
  
  <p>I'd like to convert this time to UNIX timestamp before sending to backend. How can I do this?
  I don't need to dispay UNIX time on the page, I only need to convert before posting. I've tried:</p>
  
  <pre><code>var d = Date.parse(value_of_datepicker);
  </code></pre>
  
  <p>but had no luck. It seems date should be formated in another way. Also I've tried several build-in datepicker functions, but all of them set date display view. Thanks.</p>