dantheinfoman
Programmer
Hi All,
Just nerding out on a project and wondered if anyone knows a good mathematical way to get the Nth Weekday of a month. As in my title, for example, Martin Luther King holiday falls on the 3rd Monday in January. I looked at thread184-712215, but I'm afraid I'm not as great at math as some of you folks, so if you have any ideas, I'd be thrilled to hear them.
This kind of this happens a lot in Holidays. I think Thanksgiving in US is 4th Thursday in November, etc.
Thanks!
Dan
Just nerding out on a project and wondered if anyone knows a good mathematical way to get the Nth Weekday of a month. As in my title, for example, Martin Luther King holiday falls on the 3rd Monday in January. I looked at thread184-712215, but I'm afraid I'm not as great at math as some of you folks, so if you have any ideas, I'd be thrilled to hear them.
This kind of this happens a lot in Holidays. I think Thanksgiving in US is 4th Thursday in November, etc.
Thanks!
Dan