I got this piece of code from SO. It works fine; in trying to understand the logic of how it works:![]()
Please Login or Register to view this content.
- why 13 is being added (not 14)
- why date is reduced by -5 in particular
It will tell me the correct week number within this month (e.g. 01/06/22 will be 1 week number) but I am trying to understand the logic for my knowledge sake.
Bookmarks