Calendar or duration rule
The weekday is derived from the selected Gregorian calendar date.
For historical/legal calendar questions, local calendar adoption can differ by country.
Worked check
A good reference check is January 1, 2000, which was a Saturday in the Gregorian calendar. If a historical date is being researched, remember that local adoption of the Gregorian calendar did not happen everywhere on the same date.
Rule: The weekday is derived from the selected Gregorian calendar date. For historical/legal calendar questions, local calendar adoption can differ by country. For a final check, distinguish calendar arithmetic from elapsed duration, confirm the intended local date or time zone, and inspect month-end, leap-year or daylight-saving boundaries when they can affect the meaning.
Date-only weekday semantics
The weekday is derived from the selected Gregorian calendar date, independent of the browser’s current clock time or daylight-saving transition.