title: jQuery UI DatePicker - Change Date Format
body: <p>I am using the UI DatePicker from jQuery UI as the stand alone picker. I have this code:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;div id=&quot;datepicker&quot;&gt;&lt;/div&gt;
  </code></pre>
  <p>And the following JS:</p>
  <pre class="lang-js prettyprint-override"><code>$('#datepicker').datepicker();
  </code></pre>
  <p>When I try to return the value with this code:</p>
  <pre class="lang-js prettyprint-override"><code>var date = $('#datepicker').datepicker('getDate');
  </code></pre>
  <p>I am returned this:</p>
  <pre>Tue Aug 25 2009 00:00:00 GMT+0100 (BST)</pre>
  <p>Which is totally the wrong format. Is there a way I can get it returned in the format <code>DD-MM-YYYY</code>?</p>