HOW IT WORKS

How to Find the Day of the Week

A predictable calendar. A quick calculation. A result you can use.

1. Enter a valid date

Use day, month, and year in that order. The calculator accepts years 0001 through 9999. It checks each field and the exact length of the selected month. February 30 is rejected rather than moved into March.

2. Count whole days

For a year Y, the number of days before January 1 is 365 × (Y − 1), plus the number of earlier leap years: floor((Y − 1) / 4) − floor((Y − 1) / 100) + floor((Y − 1) / 400). We then add the days of earlier months and the day number.

The remainder after division by 7 selects the weekday, with remainder 0 meaning Sunday. In this calendar, January 1, 0001 is Monday. This calculation uses integers, not browser date-string parsing, so time zones cannot move your selected date.

A worked example: July 4, 2000

The years before 2000 contribute 730,119 days. January through June 2000 contribute 182 days, including leap day. Add 4 for July 4 to get 730,305. Dividing by 7 leaves remainder 2, which means Tuesday.

3. Look for verified occasions

The local dataset matches month, day, and coverage years for international entries. The list may show several occasions on one date. No result means no matching record in our current collection.

Leap years and centuries

2024 is a leap year because it is divisible by 4. 1900 is not, because century years must also be divisible by 400. 2000 passes that additional test. Every date is validated before its weekday is calculated.

The historical limitation

The Gregorian calendar was introduced in 1582, and different places adopted it at different times. This calculator extends its rules backward consistently—the proleptic Gregorian calendar. It does not reproduce local calendar transitions, convert Julian dates, or infer which calendar a historical document used.

Today follows your device

The Today button reads your device’s local date. Once a date is entered, the weekday calculation is independent of the device’s time zone.