title: jQuery UI DatePicker output date format
body: <p>I have inline jQuery UI DatePicker and need to customize format and look of output date, code:</p>
  
  <pre><code>&lt;div id="date-start"&gt;&lt;/div&gt;
  &lt;div class="date start" id="date-start-output"&gt;&lt;/div&gt;
  
  $(function(){
      // Datepicker
      $('#date-start').datepicker({
          inline:true,            
          showOtherMonths: true,
          altField: "#date-start-value",
          altFormat: "dd M yy",
          dateFormat: "dd M yy",
          onSelect: function(){
              var day1 = $("#date-start").datepicker('getDate').getDate();                 
              var month1 = $("#date-start").datepicker('getDate').getMonth() + 1;             
              var year1 = $("#date-start").datepicker('getDate').getFullYear();               
              var str_output = "&lt;b&gt;" + day1 + "&lt;/b&gt;&lt;span&gt;" + month1 + "&lt;br /&gt;" + year1 + "&lt;/span&gt;";
              $('#date-start-output').html(str_output);
          }
  
      }); 
  
  });
  </code></pre>
  
  <p>It works, but in #date-start-output I have date format not as "dd M yy" but as "dd m yy". How can set necessary output format for month? 
  Also I need to show in #date-start-output current date after page load, I'm trying "beforeShow" event, but it not work together with "onSelect" event for me.</p>
  
  <p>Thanks.</p>