This is rather an addition to this closed topic (Convert date to week number), than a real question. But it might help some people.
The idea is I want to create a variable that simply is the week of the year, so an integer between 1 and 53.
The solution posted below still yields an error when you haven’t referred to CultureInfo before.
The full solution should be: