I recently set up a piston that behaves differently by checking if today’s date falls in a list of manually entered holiday dates. I’d like to make the population of these holiday dates automated for holidays that aren’t always on the same date, like Memorial Day, Labor Day, and Thanksgiving in the US, but I’m struggling to figure out how.
Example: I can determine today, 11/20, is the 3rd Monday in the 11th month using the following: formatDateTime($now,‘F E M’)
What I can’t seem to sort out is how to reverse engineer a date from that F E M format. How do I get an expression to return the date for the 4th Thursday in November? Is there a way?