OctalOne

100% Private & Offline-Ready

Your files are processed entirely on your device. Nothing is uploaded — works offline too!

Learn More →

Day of Week Calculator

Find the exact day of the week for any date from Year 1 to 9999 CE. Features step-by-step Zeller's Congruence algebra, ISO 8601 week analytics, and a multi-year birthday explorer with 100% client-side privacy.

Weekend• July 4, 2026
Saturday

Calendar Date Inputs

Enter any date from Year 1 to 9999 or select from quick benchmarks

Quick Historical & Temporal Presets:

Comprehensive Calendar Analytics

ISO 8601 calendar metrics, annual day counters, and relative offsets

ISO Day Number

6 (Saturday)

1 = Monday, 7 = Sunday

ISO Week Number

Week 27

Thursday anchor standard

Day of the Year

Day 185 of 365

Ordinal day in calendar

Days Remaining

180 Days

Until year ends

Relative Timeline

Today

+0 days offset

Calendar Year Type

Common Year (365d)

Feb has 28 days

Same Day in Other Years (Birthday Weekend Finder)

Discover which upcoming years July 4 falls on a weekend (Saturday or Sunday) vs weekdays

2026Weekend 🎉

Saturday

2027Weekend 🎉

Sunday

2028

Tuesday

2029

Wednesday

2030

Thursday

2031

Friday

2032Weekend 🎉

Sunday

2033

Monday

2034

Tuesday

2035

Wednesday

Zeller's Congruence Step-by-Step Mathematical Breakdown

Full algebraic terms demystifying Christian Zeller's modular calendar algorithm

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

Step 1 & 2: Adjusted Variables

  • • Day (q): 4
  • • Adjusted Month (m): 7
  • • Adjusted Year (y): 2026
  • • Century (J): 20 (⌊2026/100⌋)
  • • Year in Century (K): 26 (2026 mod 100)

Step 3 & 4: Formula Evaluation

  • • ⌊13(7 + 1)/5⌋ = 20
  • • ⌊K/4⌋ = ⌊26/4⌋ = 6
  • • ⌊J/4⌋ = ⌊20/4⌋ = 5
  • • -2J = -2(20) = -40
  • • Raw Sum = 4 + 20 + 26 + 6 + 5 + (-40) = 21
  • • Result: 21 mod 7 = 0 (Saturday)

Plaintext Calendar Receipt

=======================================================
           DAY OF WEEK AUDIT RECEIPT
=======================================================
Target Date:          July 4, 2026
Day of the Week:      Saturday (Weekend)
ISO 8601 Day Number:  6 (1=Mon, 7=Sun)
ISO 8601 Week Number: Week 27
Day of the Year:      Day 185 of 365
Days Remaining:       180 Days
Calendar Year Type:   Common Year (365 Days)
Relative Timeline:    Today (+0 days)
-------------------------------------------------------
ZELLER'S CONGRUENCE MATHEMATICAL BREAKDOWN:
• Adjusted Month (m): 7 (Jan/Feb treated as 13/14)
• Adjusted Year (y):  2026
• Century (J):        20 (floor(y/100))
• Year in Century (K):26 (y mod 100)
• Formula Sum:        4 + 20 + 26 + 6 + 5 + (-40) = 21
• Normalized Modulo:  21 mod 7 = 0 (Saturday)
=======================================================
Generated via OctalOne Day of Week Calculator
100% Client-Side Privacy • Zero External Requests
=======================================================

How Zeller's Congruence Works

In 1882, German mathematician Christian Zeller developed an algebraic formula to calculate the day of the week for any Gregorian or Julian calendar date. Unlike iterative counting, Zeller's Congruence evaluates calendar dates directly through modular arithmetic:

h = (q + ⌊13(m + 1)/5⌋ + K + ⌊K/4⌋ + ⌊J/4⌋ - 2J) mod 7
  • q: Day of the month (1–31).
  • m: Adjusted month number (March = 3 ... December = 12; January and February are counted as months 13 and 14 of the previous year).
  • K: The year of the century (y mod 100).
  • J: The zero-based century (⌊y / 100⌋).
  • h: The day of the week (0 = Saturday, 1 = Sunday, 2 = Monday, 3 = Tuesday, 4 = Wednesday, 5 = Thursday, 6 = Friday).

Calendar Curiosities & Leap Years

Fascinating insights into the calendar mathematics behind weekdays:

  1. Why 13(m + 1)/5?: This term produces the repeating sequence of 31-day and 30-day months with integer arithmetic, accurately matching calendar day shifts without tables.
  2. The 400-Year Gregorian Cycle: The Gregorian calendar repeats exactly every 400 years (146,097 days, which is exactly 20,871 weeks). As a result, dates exactly 400 years apart fall on the exact same day of the week!
  3. Friday the 13th Probability: Across a full 400-year Gregorian cycle, the 13th day of the month falls on a Friday slightly more often (688 times) than on any other day of the week.
  4. The 1582 Reform: Pope Gregory XIII reformed the calendar in October 1582, advancing October 4 directly to October 15 to correct centuries of vernal equinox drift.

You might also like

Frequently Asked Questions

The calculator uses Zeller's Congruence, a proven mathematical algorithm created by Christian Zeller in 1882. It maps any calendar date (day, month, year) to its exact weekday using modular arithmetic. For modern dates and historical dates back to Year 1, it applies the proleptic Gregorian calendar standard with 100% accuracy.

In calendar mathematics, leap days are added at the very end of February. By treating January and February as months 13 and 14 of the preceding year (for example, January 2025 is treated as Month 13 of Year 2024), the leap day (February 29) naturally falls at the very end of the mathematical year rather than in the middle. This elegant adjustment ensures that leap year rules do not disrupt intermediate modular calculations for the remaining 10 months.

Under the international ISO 8601 standard, Monday is designated as the first day of the week (Day 1) and Sunday as the last (Day 7). Week 1 of any calendar year is officially defined as the week containing the first Thursday of that year (which is also the week containing January 4). Depending on how the year begins, a year contains either 52 or 53 full ISO weeks, and days near January 1 or December 31 may belong to the neighboring year's ISO week.

The birthday explorer calculates what day of the week your selected date will fall on for the next 10 consecutive years. It highlights upcoming weekend birthdays (Saturday or Sunday) with an accent badge so you can easily plan milestone celebrations. If your birth date is February 29 (a leap day), the explorer marks non-leap common years with an educational notice indicating that celebrations occur on February 28 or March 1.

Yes, 100% private. All date calculations, Zeller congruence steps, ISO week mappings, and plaintext audit receipts run entirely within your local browser volatile memory using native client-side JavaScript. No dates, queries, or personal information are ever transmitted to any external server or analytics service.