datepicker UI floating holidays
Hi. I have been asked to create a calendar where major holidays cannot be selected. Holidays with fixed dates are no problem, however there are always things like Memorial Day or Labor Day, which are tied to certain days, not dates. What to do with them? I suppose I need to get a day using altFormat and then create a bit of internal logic to calculate the holidays. The holidays are usually something either first or last, like last Monday of the month. What would be a good way to isolate them? Delete the maximum date for this month by seven and if the remainder is greater then 4, this is the last day of its kind in the month? Or is there another, simpler solution?
Thank you,
Luka