How is it calculated?
The weekday of the chosen date is found with calendar rules. The week number follows ISO 8601: weeks start on Monday.
Example
29 October 1923 was a Monday.
Frequently asked questions
Does it work for very old dates?
It uses today's (Gregorian) calendar. Dates before 1582 may differ from the calendar used at the time.