Skip to content
CalculatorZilo Logo
  • Home
  • CalculatorsExpand
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
CalculatorZilo Logo
Home / Day Of Week Calculator
Date & Time Calculators

Day Of Week Calculator

Published onApril 21, 2026 Updated onOctober 21, 2026 4:28 am

Some dates stick in your head and one question always follows them: what day of the week was that? A birth date, a wedding, a historical anniversary, or a deadline two years from now all raise the same problem, because no ordinary calendar view reaches far enough back or forward to answer it.

This calculator finds the weekday for any date from year 1 to 9999, and it also answers the follow-up question: what day will it be a given number of days from a chosen date? Every lookup also reports the day of the year, the ISO week number, and whether that year is a leap year.

Day of Week Calculator
Weekday for any date from year 1 to 9999, plus day of year, ISO week, and leap year status

Or enter manually

Famous dates:

Dates before October 1582 use the proleptic Gregorian calendar: today’s rules projected backwards. That matches ISO 8601 and computer calendars, but a Julian almanac from the time can differ.

Quick Answer

Quick answer: July 4, 1776 fell on a Thursday. It was day 186 of 366 in a leap year, in ISO week 27 of 1776. The calculator above is pre-filled with that date, so pressing Find the day reproduces the answer, and switching to the N days away mode with 100 days gives Saturday, October 12, 1776.
On this page
  • Quick Answer
  • How to use the day of week calculator
  • Sakamoto's method, worked by hand
  • Worked example: July 4, 1776, and 100 days later
  • Why your birthday moves weekday every year
  • Old dates, the Gregorian reform, and the ISO week
  • What competing calculators miss
  • Frequently Asked Questions
  • Add This Calculator to Your Website
  • References

How to use the day of week calculator

Start with the mode selector. Weekday of a date is the plain lookup. What day is N days away adds a day count, positive to move forward or negative to move backwards, and returns the resulting date and its weekday. Enter the date either with the picker or in the three manual boxes. The manual boxes matter more than they look: they are how you reach years the picker handles awkwardly, and if any manual box is filled, the tool uses the manual date and asks you to complete all three.

The four famous date buttons load a date into the picker in one click, which makes them a fast honesty check on the tool itself. Anyone can verify that the Moon landing was a Sunday before trusting the calculator with their own birthday. If you are sorting out the dates written into a contract rather than a single day, the agreement date calculator works through agreement dates in more depth.

Read the result in layers. The large weekday is the headline. Below it sit the day of the year, the ISO week with the year that week belongs to, the leap year status, and, in weekday mode, how far the date sits from today. That last figure is counted live, so it changes every day, which is exactly what you want when the question is how long ago a birth date was.

Sakamoto's method, worked by hand

The weekday of a Gregorian date is fixed arithmetic, because the calendar repeats exactly every 400 years: 146,097 days, which is precisely 20,871 weeks. This calculator uses the compact formula published by Tomohiko Sakamoto. Take the year, add its leap adjustments, add a small month code from a fixed table, add the day, and divide by 7. The remainder is the weekday, counting 0 as Sunday.

The formula: weekday = (y + floor(y/4) - floor(y/100) + floor(y/400) + month code + day) mod 7, where the month codes are 0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4 for January through December, and y is reduced by 1 for January and February dates.

Here is the same method worked by hand for Thursday, October 8, 2026, one of the offset examples used on this page:

1

Look up the month code. October's code is 6. October comes after February, so the year stays 2026.

2

Add the pieces. 2026 + 506 (from 2026/4) - 20 (from 2026/100) + 5 (from 2026/400) + 6 + 8 = 2531.

3

Divide by 7. 2531 divided by 7 is 361 remainder 4.

4

Read the remainder. Counting 0 as Sunday, 1 as Monday, 2 as Tuesday, 3 as Wednesday, 4 is Thursday.

The January and February adjustment is the elegant part. A leap day lands at the end of February, so for the first two months of a year the formula borrows the previous year. That folds leap days into the same one-line calculation instead of needing a special case, and it is why the month codes for January and February look one step lower than a naive count would suggest.

Worked example: July 4, 1776, and 100 days later

The calculator is pre-filled with July 4, 1776, the signing date of the US Declaration of Independence, and every figure in this table is what the tool returns for it.

LookupResultDetail
Weekday of July 4, 1776ThursdayDay 186 of 366, ISO week 27 of 1776, leap year: yes
100 days after July 4, 1776Saturday, October 12, 1776Day 286 of 1776, ISO week 41
100 days after October 8, 2026Saturday, January 16, 2027The offset crosses the year boundary without any manual month counting
Moon landing, July 20, 1969SundayDay 201 of 365, ISO week 29 of 1969
Y2K, January 1, 2000SaturdayDay 1 of 366, but ISO week 52 of 1999
Christmas Day, December 25, 2026FridayDay 359 of 365, ISO week 52 of 2026

The Y2K row deserves a second look. January 1, 2000 was the first day of its calendar year, yet it belongs to ISO week 52 of 1999, because ISO weeks are owned by the year that contains their Thursday. Tools that report a week number without its ISO year hide exactly this trap, and it is the kind of detail that matters when a work schedule or a school term is planned by week numbers. For a related workplace date problem, converting leave balances with the annual leave hours to days calculator is often the next step after pinning down which weekdays a break actually covers.

400 years
Full Gregorian repeat cycle: 146,097 days, exactly 20,871 weeks
1 to 9999
Year range the calculator accepts, with strict date validation
186
Day of the year for July 4, 1776, a leap year
52 or 53
ISO weeks in a year, depending on where its Thursdays fall

Why your birthday moves weekday every year

A common year has 365 days, which is 52 weeks plus 1 day, so every date shifts one weekday forward the following year. A leap year has 366 days, so a date after February shifts by two when a leap day falls in between. That simple pattern explains most birthday trivia: your birth date does not return to its original weekday on a tidy schedule, because the one and two day shifts mix irregularly across the four year leap cycle, and century years break the pattern again when they skip their leap day, as 1900 did and 2100 will.

It also explains why planning by weekday alone goes wrong. A monthly event set for the first Saturday will drift between the 1st and the 7th of the month, and an annual deadline set on a fixed date will land on a weekend roughly two years in seven. Checking the actual weekday for the specific year, rather than assuming last year's pattern repeats, is the whole job of this tool. When you need to subtract a span of time from a deadline instead, the deduct time calculator handles that direction of the problem.

Old dates, the Gregorian reform, and the ISO week

The Gregorian calendar was proclaimed in 1582 as a reform of the Julian calendar, according to Britannica's history of the Gregorian calendar, and countries adopted it at very different times: Catholic Europe in 1582, Britain and its colonies in 1752, others later still. Before a country's switch, its records were kept in Julian dates. This calculator applies today's Gregorian rules backwards across the whole range, the proleptic Gregorian convention used by ISO 8601 and by computer calendars. That keeps every date internally consistent, but for a pre-reform date it can differ from what a local almanac of the era would have printed.

The ISO week system has its own logic, set out in the ISO week date system: weeks start on Monday, week 1 is the week containing the year's first Thursday, and a year has 52 or 53 weeks. The practical consequence sits at the year boundary. A few late December days can belong to week 1 of the next ISO year, and a few early January days can belong to the last week of the previous one, which is why this calculator always reports the ISO year alongside the week number.

Key takeaways

  • The weekday is pure arithmetic: Sakamoto's formula needs only the year, a month code, and the day, with no time zone involved.
  • Strict validation is a feature, not a nuisance. February 30 is rejected with the real length of that February, instead of rolling into March.
  • An ISO week number without its ISO year is incomplete at year boundaries: January 1, 2000 is week 52 of 1999.
  • The N days away mode uses exact day counting in both directions, so offsets that cross months, years, and leap days need no manual counting.

What competing calculators miss

The weekday tools reviewed for this page mostly get the weekday itself right, because the arithmetic is well known. The gaps sit around the answer.

Miss 1: silent acceptance of impossible dates. Several tools roll February 30 into March and report a weekday for a date that never existed. This calculator validates the day against the real length of that month in that year and explains the error, naming how many days that February actually has.

Miss 2: browser Date traps. Tools built directly on a browser's date object inherit its quirks, including the classic trap where years under 100 are read as 19xx unless the code takes special care, and midnight UTC parsing that can shift a weekday by time zone. Pure arithmetic has neither problem, which is how this tool covers year 1 to 9999 with the same code path.

Miss 3: a week number with no ISO year. As the Y2K example shows, that omission produces a wrong answer at exactly the year boundaries where week numbers get used for planning.

Miss 4: no offset mode. Knowing a date's weekday rarely ends the question. The practical follow-up is what day it will be 100 days later, or 90 days before a deadline, and most single-purpose tools send you to a separate date adder for it. Here it is a mode switch on the same tool, with the same validation.

Frequently Asked Questions

Enter your birth date in the calculator above. It also shows your day of the year, your ISO week number, and how many days ago it was, counted from today.

With Sakamoto's formula: add the year, the year's leap adjustments, a month code from a fixed table, and the day of the month, then take the remainder after dividing by 7. The remainder maps to the weekday, with 0 as Sunday. The worked example on this page shows every step.

Yes, for any date from year 1 to 9999. The Gregorian calendar repeats every 400 years, so the arithmetic is exact across the whole range. Dates before October 1582 use the proleptic Gregorian calendar.

Before the Gregorian reform of October 1582, the Julian calendar was in use, which can differ from the proleptic Gregorian result by a few days depending on the century. After a country adopted the Gregorian calendar, the two approaches agree for the dates the calculator covers.

ISO weeks start on Monday, and week 1 contains the year's first Thursday. The calculator reports the week and the year it belongs to, so late December dates can show as week 1 of the following year, and January 1, 2000 correctly shows as week 52 of 1999.

Use the N days away mode: enter your starting date and the number of days, negative to go backwards. The calculator returns the resulting date and its weekday. For example, 100 days after October 8, 2026 is Saturday, January 16, 2027.

Thursday. It was day 186 of 1776, a leap year, in ISO week 27. Try the famous dates buttons above to check the Moon landing, Sunday, July 20, 1969, and other milestones.

Not here. Many date tools parse the picker value as midnight UTC, which can shift the weekday for users west of Greenwich. This calculator reads the year, month, and day as plain numbers and computes the weekday arithmetically, so the answer is identical in every time zone.

Because it is not a real date. The calculator checks the day against the actual length of that month in that year, including the leap year rule for February, and shows an error instead of silently rolling the date into March.

Add This Calculator to Your Website

Embed the Day of Week Calculator on your own site. Pick a size to preview it live, then copy the code.

Powered by Calculator Zilo

References

  1. Tomohiko Sakamoto's algorithm, the month-code table and the year adjustment for January and February used by this calculator. GeeksforGeeks: Sakamoto's algorithm for finding the day of the week. Accessed October 2026.
  2. Survey of weekday algorithms, including Sakamoto's method, Gauss's method, and Zeller's congruence, with the formulas compared. OpenGenus: Algorithms for calculating day of week. Accessed October 2026.
  3. Encyclopaedia Britannica on the Gregorian calendar: its 1582 proclamation, the Julian calendar it reformed, and the century leap year rule. Britannica: Gregorian calendar. Accessed October 2026.
  4. The ISO week date system: Monday week starts, week 1 containing the first Thursday, and 52 or 53 week years. ISO week date system. Accessed October 2026.
  5. Plain language explanation of the ISO week date system and why dates near New Year can belong to a neighbouring ISO year. Time.now: What is the ISO week date system?. Accessed October 2026.
  6. Background on the adoption of the Gregorian calendar country by country, and the Old Style and New Style dating confusion it left in historical records. Adoption of the Gregorian calendar. Accessed October 2026.

Related calculators

Date & Time CalculatorsMilitary Clock CalculatorReading a roster, a flight itinerary or a hospital chart in 24-hour time is easy once the pattern clicks, and painful until it does.Date & Time CalculatorsHours To Days CalculatorConverting hours to days is one division, but the divisor is a decision: divide by 24 and you get calendar...Date & Time CalculatorsMonths To Years CalculatorThirty months is two and a half years, but 2.5 years is rarely how anyone talks about a duration.Date & Time Calculators Min To Hour Calculator Payroll wants decimal hours, schedules want hours and minutes, and the number you start with is usually plain minutes.Date & Time CalculatorsDiscord Time CalculatorType "8 PM EST" into a Discord announcement and someone in another timezone will show up at the wrong hour, every time.Date & Time CalculatorsGoal Date CalculatorPick a start date, add a duration in days, weeks, months, years, business days or a custom mix of all four,...

We use cookies to analyze traffic and to serve ads that keep our calculators free. You can accept or decline cookies below. Learn more

calculatorzilo

CalculatorZilo

Free calculators for everyday life. No signup, no cost, just answers.

Categories

Finance Math Health & Fitness Education Science Real Estate Chemistry Browse all calculators

Popular tools

Mortgage Payment Calculator BMI Walking Calculator Salary Per Minute Calculator Percentage Off Calculator

Company

About Us Contact Us Privacy Policy Terms and Conditions
Disclaimer Cookie Policy DMCA Policy FAQ Accessibility Statement

© 2026 CalculatorZilo • Free calculators for everyone

  • Home
  • Calculators
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
Search