I think this is due to the fact that there are several definitions of week numbers there.
The definition of determining the week number in ISO ( https://en.wikipedia.org/wiki/ISO_week_date ) is different from the North American definition of week number and other cultures.
Why the above explanation matters to our context (why not have "AddWeeks ()")
The beginning of the 1st week or the end of the 52/53 week varies in different formats / cultures, therefore when adding / subtracting, if we cross this border, i.e. the beginning of the year or the end of the year, then it is necessary to obtain additional information in order to determine the exact date for the week number (regardless of whether they correspond to the ISO or forms of local culture, whether Monday or Sunday, etc.), which makes this function complicated. I think thatβs why they left it to us to find out the week number.
If you literally want to add a few weeks, and if you don't like the definition of the week, then yes, the Steve Morgan solution proposed above is smart enough.
user1094140
source share