title: jQuery ui datepicker, get Day of week from onSelect
body: <p>Is it possible to get the day of the week from the onSelect event of the datepicker.</p>
  
  <p>I know I can get the day of the month, but I want the day of the week.  Even just the day index will be fine e.g. 0-6.</p>
  
  <p>I know you can get it in the beforeShowDay (or similar) event, but I need to react differently depending on the day of the week chosen.
  It's to do with setting the opening times.</p>
  
  <p>I could hit the server and find out, but that is not going to come back fast enough...ideally i want it all done on the client.</p>