For a given day in a month (e.g. day 22 of November 2022), I want to be able to find out which number occurrence that particular weekday happens to be within that month. So, given day 22 of November 2022, I need to get back "4th Tuesday".
Ideally I would love to accomplish this with javascript Date or Luxon if possible, but my searching so far hasn't yielded an answer, and the logic to determine this is just escaping me.
Thanks!