Day of the Week Calculator

Find what day of the week any date falls on for past or future dates.

339 Views
Add as a preferred source on Google

About this Day of the Week Calculator

Sometimes you know the date but need the weekday it fell on—or will fall on—without scrolling through years of calendars. The Day of Week Calculator in this script solves that directly using Zeller’s Congruence.

Enter a calendar date and the formula converts the day, month, year-within-century, and century into a remainder that maps to Saturday through Friday.

The script also handles January and February as months 13 and 14 of the previous year, which is one of the details that makes the formula awkward to do reliably by hand. The calculator is useful for historical dates, birthdays, anniversaries, scheduling checks, archival records, classroom exercises, and future planning.

It gives the weekday for the date entered rather than relying on an external calendar lookup.

What Is a Day of Week Calculator?

A Day of Week Calculator determines whether a date falls on Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, or Sunday. The script uses Zeller’s Congruence, which transforms the date into numerical components and takes the result modulo 7.

In the mapping shown, 0 represents Saturday, 1 Sunday, 2 Monday, and so on through 6 for Friday. January and February are treated as months of the previous year for the purpose of the formula, while March is month 3.

The calculator performs those adjustments automatically, so you only need to enter the ordinary calendar date. Its output is a weekday label, not a count of days between dates.

Reading Your Results

What you get back is the Day of the Week value for exactly the numbers you entered. The rule applied is constant, so any movement in the answer came from something you changed.

Try changing a single figure and comparing the two results: the size of the shift is often more informative than the number itself.

How to use this calculator

1Enter the date you want to check.
2Click "Calculate."

The calculator applies Zeller’s Congruence and determines the day of the week for that date.

h = (q + ⌊13(m + 1) ÷ 5⌋ + K + ⌊K ÷ 4⌋ + ⌊J ÷ 4⌋ + 5J) mod 7

Where

h = Day of the week result — 0 = Saturday, 1 = Sunday, 2 = Monday, 3 = Tuesday, 4 = Wednesday, 5 = Thursday, 6 = Friday
q = Day of the month
m = Month (March = 3, April = 4, ..., December = 12; January = 13 and February = 14, treated as months of the previous year)
K = Year within the century = Year mod 100
J = Zero-based century = Floor(Year ÷ 100)

Example 1

Date = 27 July 2026
q = 27, m = 7, Year = 2026, K = 26, J = 20
h = (27 + Floor(13 × 8 ÷ 5) + 26 + Floor(26 ÷ 4) + Floor(20 ÷ 4) + 5 × 20) mod 7
h = (27 + 20 + 26 + 6 + 5 + 100) mod 7 = 184 mod 7 = 2
Result: 2 = Monday

Example 2

Date = 1 January 2000 (January treated as month 13 of the previous year)
q = 1, m = 13, Year = 1999, K = 99, J = 19
h = (1 + Floor(13 × 14 ÷ 5) + 99 + Floor(99 ÷ 4) + Floor(19 ÷ 4) + 5 × 19) mod 7
h = (1 + 36 + 99 + 24 + 4 + 95) mod 7 = 259 mod 7 = 0
Result: 0 = Saturday

Example 3

Date = 15 August 1947
q = 15, m = 8, Year = 1947, K = 47, J = 19
h = (15 + Floor(13 × 9 ÷ 5) + 47 + Floor(47 ÷ 4) + Floor(19 ÷ 4) + 5 × 19) mod 7
h = (15 + 23 + 47 + 11 + 4 + 95) mod 7 = 195 mod 7 = 6
Result: 6 = Friday
Day of the Week Calculator Which weekday the 1st of January falls on, for the next eight years Purple marks a leap year 2026Thu2027Fri2028Satleap year2029Mon2030Tue2031Wed2032Thuleap year2033Sat A date moves forward one weekday each year, and two across a leap year, because 365 divided by 7 leaves a remainder of 1. The whole calendar repeats itself every 400 years.

Day of the Week Codes (Zeller's Congruence)

ResultDay of Week
0Saturday
1Sunday
2Monday
3Tuesday
4Wednesday
5Thursday
6Friday

Zeller's congruence computes the weekday for any date in the Gregorian calendar.

Doomsday Anchor Days by Century

CenturyAnchor Day
1800sFriday
1900sWednesday
2000sTuesday
2100sSunday
2200sFriday

The Doomsday rule lets you calculate any weekday mentally with practice.

Memorable Doomsday Dates

DateMnemonic
4 April (4/4)Same digits
6 June (6/6)Same digits
8 August (8/8)Same digits
10 October (10/10)Same digits
12 December (12/12)Same digits
9 May / 5 September9-to-5 at 7-Eleven
Last day of FebruaryVaries with leap year

All of these dates fall on the same weekday within any given year.

Factors Affecting Your Day of Week Result

The date must be interpreted correctly before the formula is applied. Reversing day and month in an ambiguous numeric format gives a different date and therefore potentially a different weekday.

January and February require the special previous-year treatment built into Zeller’s Congruence; skipping that adjustment is a common manual error. Century values also matter because the formula uses both the year within the century and the century itself. The result assumes the calendar convention implemented by the script.

Extremely old historical dates can be complicated by changes between calendar systems in real history, while the mathematical formula is usually applied within a specified calendar framework.

For ordinary modern dates, the main risks are simply entering the wrong date, misreading the format, or manually reproducing the formula with the month/year adjustment incorrectly.

The weekday repeats on a seven-day cycle, but leap years and unequal month lengths change how calendar dates line up from one year to the next. Using the formula avoids assuming that the same date must always fall on the same weekday in successive years.

Benefits of Using the Day of Week Calculator

  • Find the weekday for a past or future date without searching through a printed or online calendar year by year.
  • Apply the month and century adjustments in Zeller’s Congruence automatically, avoiding the most error-prone parts of the manual formula.
  • Check historical records, birthdays, anniversaries, and scheduling dates quickly from a single date input.
  • Verify a manually worked calendar-math problem by comparing the modulo-7 result with the calculator’s weekday output.
  • Recalculate many dates quickly when you need to compare recurring events or confirm weekday patterns across different years.

Frequently asked questions

Why are January and February treated differently in Zeller’s Congruence?

The formula numbers March through December as months 3 through 12 and treats January and February as months 13 and 14 of the previous year. That rearrangement is part of the formula and must be applied before calculating the weekday.

What does “mod 7” mean in the formula?

It means take the remainder after division by 7. Because a week repeats every seven days, the remainder can be mapped to one of seven weekday labels. In the script’s mapping, 0 is Saturday and 2 is Monday.

Can I use this for future dates?

Yes. The formula works from the calendar date components, so a future date can be processed in the same way as a past date. The result tells you the weekday associated with that date under the calendar method used by the script.

Why might an ancient historical date be tricky?

Real-world calendar systems changed over history, while a mathematical weekday formula assumes a particular calendar convention. For ordinary modern dates this is not an issue, but very old dates may need historical calendar context beyond the calculator’s simple date input.

What is the most common input mistake?

Ambiguous date format is a frequent problem. A date such as 04/05/2026 can be interpreted as April 5 or May 4. Confirm the calculator’s displayed format or use its date picker before checking the weekday.

Final Words

Treat the Day of the Week Calculator as a focused tool for one job: find the weekday for a past or future date without searching through a printed or online calendar year by year.

Its result still depends on the fact that the date must be interpreted correctly before the formula is applied.

If that context changes, rerun the Day of the Week Calculator and apply the month and century adjustments in Zeller’s Congruence automatically, avoiding the most error-prone parts of the manual formula before using the previous answer.

Disclaimer

This calculator provides estimates for general informational and educational purposes only and should not be treated as financial, medical, legal, or professional advice. Results depend entirely on the accuracy of the figures you enter.

Always verify important decisions with a qualified professional, official documentation, or your financial institution before acting on any result shown here.

Related Calculators

Age Calculator

Precise age calculator that determines your exact age in years, months, days, hours, and minutes from your birth date. Calculate age differences between dates, upcoming birthdays, and various time-related calculations with detailed breakdowns and multiple format options.

12.0K Views
Use Calculator
Hours Calculator

Calculate work hours, overtime, time sheets, hourly wages, and time tracking for payroll and project management purposes.

6.5K Views
Use Calculator
Time Duration Calculator

Calculate duration between two times or dates with precise time measurements.

846 Views
Use Calculator
Love Calculator

Calculate love compatibility percentage based on names for entertainment purposes.

691 Views
Use Calculator
Height Calculator

Calculate height conversions between different units and predict adult height based on current age.

651 Views
Use Calculator
Dice Roller

Roll virtual dice with customizable sides and quantities for games and probability.

607 Views
Use Calculator
Shoe Size Conversion

Convert shoe sizes between different international sizing systems and standards.

592 Views
Use Calculator
Heat Index Calculator

Calculate heat index and apparent temperature based on air temperature and humidity levels.

517 Views
Use Calculator
GPA Calculator

Calculate Grade Point Average (GPA) for academic performance tracking with support for different grading scales and credit systems.

501 Views
Use Calculator

All Categories