I have a DatePicker that is being used to allow users to input pay dates. In this situation, pay dates are every 2 weeks. I have a seed date to start with, but need to disable all other dates that are not in 2 week increments from that date.
Has anyone done anything like this? I am able to disable dates using the disabledDates config option, and the setDisabledDates function, but in my case, it would be better to have an enabledDates since only a couple of dates will be enabled per month.
Also, I was looking for an event that fired when the month was changed on the DatePicker. Is there such an event? I could then set the disabled dates when the month was changed. This would seem more practical than doing it for every month of every year up front.