Jquery UI date picker to format the date
<p>I'm using date picker. I'm trying to change the format of date but I got following error.</p>

<p><code>Unable to parse date specified in strtotime()</code> </p>

<p>Here is what I have tried:</p>

<pre><code>  $(function()
  {  
   $("#datepicker").datepicker({
      onSelect: function(dateText, inst)
      { 
       var x = dateText;
       var y= x.parseDate('yy-mm-dd', '2000-11-02');
       var z= $(this).datepicker('getDate');
      } 
     });
   }
</code></pre>

<p>I want the date in yy-mm-dd format.</p>
