Here's an interesting equation of sorts. I'm looking for the cleanest way to retrieve the second full-week Fridays of each month for any given year. Assuming the week begins on Monday.
EXAMPLES
These things are fun usually but I'm not feeling it right now. Any suggestions?
This might be not easy to understand at first, but for this specific case rules are simple:
weekday = 'Friday' (or whichever way to determine if this day is Friday)
and day_of_month between 12 and 18
This will work if week starts on Monday.