DateTime has a week_of_month method, which is defined as
The first week of the month is the first week that contains a Thursday. This is based on the ICU definition of week of month, and correlates to the ISO8601 week of year definition. A day in the week before the week with the first Thursday will be week 0.
But I can't guess if that's the definition the OP wants.
In reply to Re^2: How to find week of the month?
by Joost
in thread How to find week of the month?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |