I want to take a date and work out its week number.
So far, I have the following. It is returning 24 when it should be 42.
Just as a suggestion:
Might be a little simpler than all that lot.
Other things you could do: