>>Hi,
>>
>>I am trying to create a function that will return the week number in a month, by any date of Monday.
>>
>>For example, the date "08/21/2017" (in American system) it would be 3rd week (in August). The week has to have Monday. So this month (August) the first week is the week of August 7, August 14 is week 2, August 21 is week 3, and August 28 is week 4.
>>
>>My code is very convoluted/complicated and I am sure there is a better way.
>
>What's the week number for 3rd of the month if the first monday is on 5th?
I am sorry that I don't quite understand the question. Could you please give me an example?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham