Today in exist-open, Slav asked:
Hi, anyone have function for calculate all second Tuesdays for year?
(That is, Patch Tuesdays.)
Below are two approaches—one that solves the problem directly (finding only 2nd Tuesdays) and one more generally (finding any combination of week of the month and day of the week, e.g., 5th Sundays).