HOW IT WORKS
Gregorian weekday & ISO 8601 week
Using exact UTC Gregorian calendar arithmetic, this tool maps any date from 1583 through 9999 to its weekday, monthly occurrence (such as 1st Thursday of July), day of year, and ISO 8601 week number.
Gregorian Leap-Year Rule
A year is a leap year (366 days) if it is divisible by 4, except century years must also be divisible by 400 (so 2000 was a leap year, while 1900 was not).
ISO 8601 Week Numbering
ISO weeks start on Monday, and Week 01 of any year is the week containing the first Thursday of that year (equivalently, January 4).