Calculate the weekday for any date in history or future. Find time spans between dates, business days, and more.
The day of the week for any date can be calculated using algorithms like Zeller's Congruence or by counting days from a known reference point. Our calculator uses JavaScript's Date object which implements these algorithms to provide accurate results for dates from year 1 to 275,760.
Zeller's Congruence Algorithm:
Where:
h = day of the week (0=Saturday, 1=Sunday, ..., 6=Friday)
q = day of the month
m = month (3=March, 4=April, ..., 14=February)
K = year of the century (year mod 100)
J = zero-based century (floor(year/100))
| Aspect | Description | Example |
|---|---|---|
| Leap Year Rule | A year is a leap year if it is divisible by 4, but not by 100 unless also divisible by 400 | 2000 was a leap year, 1900 was not |
| Weekday Cycle | The weekdays repeat every 7 days | If Jan 1 is Sunday, Jan 8 is also Sunday |
| Month Lengths | Months have 28-31 days depending on the month | January has 31 days, February has 28 or 29 |
| Century Rule | Every 400 years, the calendar repeats exactly | 1/1/2000 was Saturday, 1/1/2400 will be Saturday |
| Doomsday Rule | Certain dates always fall on the same weekday each year | 4/4, 6/6, 8/8, 10/10, 12/12 always on same day |
Julian to Gregorian Transition: Different countries adopted the Gregorian calendar at different times. For dates before the adoption in each country, calculations may differ from historical records.
Calendar Reform of 1752: Great Britain and its colonies adopted the Gregorian calendar in 1752, skipping 11 days (September 2 was followed by September 14).
Leap Year Adjustments: The Gregorian calendar corrected the Julian calendar's overcounting of leap years by omitting 3 leap years every 400 years.
Calculator Features: