I\'m trying to use the jquery UI datepicker to show a calendar with only the last day of the month selectable.
I\'ve successfully used the beforeShowDay event to disabl
function LastDayOfMonth(Year, Month) { //set next month first day //substract one day from it. return new Date(new Date(Year, Month+1,1)-1).getDate(); }
This will work