title: JQuery datepicker - Selecting the last day of the month
body: <p>In a report generator I wrote the user can select a date range to display results for.  But since the data for this report is generated monthly the day portion of the date range is really irrelevant.  I now have the requirement to change the day of the selected start date to '1' regardless of what the user has selected.  I've done this like so:</p>
  
  <pre><code>$('#TextStartDate').datepicker({ maxDate: "+0M", minDate: "-24M", dateFormat: 'm/1/yy' });
  </code></pre>
  
  <p>The second pard of the requirement is that the day of the selected end date be set to the last day of the month regardless of what day was selected.  So if the user selected an end date of 5/16/2011 then the date field would show 5/31/2011.  This is where I get stuck. </p>
  
  <p>Any help would be greatly appreciated.</p>