title: Extract month from jquery datepicker
body: <p>I have a jquery datepicker that formats the date in dd/mm/yyyy. I need to display the month name when someone types in a date, a date is selected and on load. i'm struggling to get the month. myDate is the textbox attached to the datepicker. i have this:</p>
  
  <pre><code>var date = new Date($("#myDate").val());
  alert(date.getDate());
  alert(date.getMonth());
  alert(date.getDay());
  alert(date.getYear());
  </code></pre>
  
  <p>When i run it with a date of 18/07/2011, i get 5 for the month, 4 for the day, 7 for the date and 112 for the year, which is all very odd. What am i doing wrong? all i need to do is dynamically change a month label to the month selected/typed in with the datepicker i.e July...</p>