Properly extract week number from a given date. Note that if Jan 1 is not on a Monday, it is in the same week as Dec 31 of the year before, and this can be either week 1 (if Jan 1 is on a Tuesday, Wednesday, or Thursday) of week 52/53 (if it is on a Friday, Saturday, or Sunday). This fixes bug 3232 properly.
Properly extract week number from a given date.
Note that if Jan 1 is not on a Monday, it is in the same week as Dec
31 of the year before, and this can be either week 1 (if Jan 1 is on a
Tuesday, Wednesday, or Thursday) of week 52/53 (if it is on a Friday,
Saturday, or Sunday).
This fixes bug 3232 properly.

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb