# Day of the Week Calculator

URL: https://hifreetools.com/date-time/day-of-week-calculator

> Instantly find the day of the week for any date in history or the future — simply enter a date and get the result in seconds.

## Quick answer

To find what day of the week a date falls on, use Tomohiko Sakamoto's algorithm or Zeller's congruence, both of which work for any Gregorian calendar date. For example, January 1, 2000 was a Saturday, July 4, 1776 was a Thursday, and December 25, 2025 is a Thursday. You can also count days from a known reference point: January 1, 2026 is a Thursday, so adding days and taking modulo 7 gives the weekday offset. This calculator handles all dates from the year 1 through 9999 in the proleptic Gregorian calendar.

## Formula

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

## Examples

- January 1, 2000: Date: January 1, 2000 → Saturday
- July 4, 1776 (US Independence Day): Date: July 4, 1776 → Thursday
- December 25, 2025 (Christmas): Date: December 25, 2025 → Thursday
- June 11, 2026: Date: June 11, 2026 → Thursday

## FAQ

**What day of the week was I born on?**
Enter your birth date into the calculator and it will instantly tell you the day of the week you were born. For example, someone born on January 1, 2000 was born on a Saturday.

**What algorithm does this calculator use?**
This calculator uses JavaScript's built-in Date object, which implements the proleptic Gregorian calendar. Internally, JavaScript computes the day of the week using epoch-based arithmetic (milliseconds since January 1, 1970), which is mathematically equivalent to Zeller's congruence or Tomohiko Sakamoto's algorithm.

**Does the calculator work for dates before 1970?**
Yes. JavaScript's Date object supports dates well before 1970. The calculator works for any date from year 1 through 9999, including historical dates like July 4, 1776 (Thursday) and January 1, 1900 (Monday).

**What is the difference between the Gregorian and Julian calendar?**
The Gregorian calendar, introduced in 1582, corrected the Julian calendar's drift by adjusting leap year rules. Before 1582, many countries used the Julian calendar. This calculator uses the proleptic Gregorian calendar for all dates, meaning it applies Gregorian rules even to dates before 1582.

**What day of the week does January 1, 2027 fall on?**
January 1, 2027 falls on a Friday. Since January 1, 2026 is a Thursday and 2026 is not a leap year, January 1, 2027 is exactly 365 days later. 365 mod 7 = 1, so Thursday + 1 = Friday.

**How do I find what day a future holiday falls on?**
Simply enter the date of the holiday into the calculator. For recurring holidays like Christmas (December 25) or New Year's Day (January 1), just change the year to the one you want. The calculator instantly shows the weekday for any year you choose.


## Sources

- [Wikipedia — Zeller's congruence](https://en.wikipedia.org/wiki/Zeller%27s_congruence)
- [Wikipedia — Determination of the day of the week](https://en.wikipedia.org/wiki/Determination_of_the_day_of_the_week)
- [MDN — Date (JavaScript)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Day of the Week Calculator", https://hifreetools.com/date-time/day-of-week-calculator
