title: Get week number and number of the day in the week from jquery ui calendar
body: <p>How to get week number / number of the day in the week when choose date from calendar?
  For example if I choose 28-May-2015, to get 22/4.  (22th week, Thursday is 4th day in this week).</p>
  
  <p>Currently i got just week number (22).
  The code is:</p>
  
  <pre><code>$(document).ready( function (){
      $('.pick-date').datepicker({
          showWeek: true, firstDay: 1 ,
          constrainInput: true,
          showOn: 'button',
          buttonImage: "calendar.png",
          buttonImageOnly: true,
  
  
  
        onSelect: function(dateText, inst) {
  
  
      inst.input.val($.datepicker.iso8601Week(new Date(dateText)));
  
      }
      });
  });
  </code></pre>
  
  <p>Thanks,
  Igor</p>