What is the formula for the Day of the Week Calculator?
Day of the Week Calculator: weekday = Gregorian calendar date modulo seven-day cycle. Input definitions: date = Calendar date. Use the selected convention throughout the calculation.
Look up a Gregorian calendar weekday or ISO 8601 week number. ISO weeks begin on Monday, and the first week contains January 4; the ISO week-year can differ from the calendar year.
Check the stated input format, calculation convention and limits before using the result.
Check the example inputs, then calculate. Your values stay in this browser.
This tool uses the proleptic Gregorian calendar, not historical local calendar reforms.
Day of the Week Calculator validates calendar date before applying the displayed equation. This tool uses the proleptic Gregorian calendar, not historical local calendar reforms.
Day of the Week Calculator: weekday = Gregorian calendar date modulo seven-day cycle. Input definitions: date = Calendar date. Use the selected convention throughout the calculation.
Day of the Week Calculator baseline input: Calendar date: 2026-01-01. Output: Weekday = Thursday. Substitute these values into the displayed equation to reproduce the result.
Content and calculation reviewed:
Understand the calculation
The seven-day cycle repeats continuously across month and year boundaries. January 1, 2021 was a Friday; advancing by seven calendar days preserves Friday. Leap days alter the offset between the same month/day in successive years. The tool applies the proleptic Gregorian calendar, rather than reconstructing a region’s historical change from the Julian calendar.
weekday = Gregorian calendar date modulo seven-day cycle
The detailed guide adds variable definitions, a reproducible example, a practice question and model limitations.
From question to result