title: get selected value in datePicker and format it
body: <p>In the datePicker selected <code>20.04.2012</code>. I want to get this value, format it and store in a variable.
  I uses this code:</p>
  
  <pre><code>var date = $("#scheduleDate").datepicker({ dateFormat: 'dd,MM,yyyy' }).val();
  </code></pre>
  
  <p>But result is <code>20.04.2012</code>.
  Also, I tryed this code:</p>
  
  <pre><code>var dateTypeVar = $('#scheduleDate').datepicker('getDate');
  $.datepicker.formatDate('dd-MM-yy', dateTypeVar);
  </code></pre>
  
  <p>Result is <code>Fri Apr 20 2012 00:00:00 GMT+0600</code>.</p>
  
  <p>I want to get the following: <code>20, April, 2012</code><br>
  How to format properly?<br>
  Thanks.</p>