Contents
- ๐ What is this?
- ๐จ๐ปโ๐ป How to use it?
- ๐ฐ Examples
- ๐ Nuances
- ๐ค Frequently asked questions
- ๐ Related materials
How the day of the week calculator works
Choose a day, month and year. The calculator checks that the date exists, applies the Gregorian calendar rules and returns the matching weekday.
Dates that make useful checks
Known dates are the quickest way to see what the result means and to catch a date entered in the wrong order.
- 1 January 1970: the calculator returns Thursday. This date is also the start of Unix time, so it appears often in computing.
- 29 February 2000: the result is Tuesday. The date exists because a year divisible by 400 remains a leap year.
- 1 January 2024: the result is Monday. A planner for that year therefore starts with a full Monday-to-Sunday week.
For a birthday, appointment or anniversary, enter the printed civil date exactly as written. A weekday belongs to the date itself; no time of day is required.
The arithmetic behind the weekday
The calculation uses an integer form of the Gregorian calendar. January and February are treated as part of the preceding calculation year, then a month offset is added before division by seven.
Here d is the day of the month, tm is the fixed offset for the selected month, and y is the adjusted year. The remainder w runs from 0 for Sunday through 6 for Saturday.
The divisions by 4, 100 and 400 encode leap years. Over 400 Gregorian years there are 146,097 days, exactly 20,871 weeks, so the weekday pattern repeats after 400 years.
A calendar answer can still need context
The calculator uses the proleptic Gregorian calendar for every year from 1 to 9999. โProlepticโ means that todayโs Gregorian rules are extended backward even before the calendar was introduced. This gives one consistent mathematical answer, but an old local record may have used the Julian calendar or a regional changeover date.
A timezone does not change the weekday of a plain civil date. It matters only when a timestamp is converted between places and crosses midnight. If you start with an event time rather than a written date, convert it to the intended local date first.
Impossible dates are rejected. February has 29 days only in a Gregorian leap year, while April, June, September and November stop at day 30.
Questions people ask about weekday dates
The method is exact for its calendar, but the calendar choice and the date itself still matter.
Can the same date fall on a different weekday in another calendar?
Yes. A Julian calendar date and a Gregorian date with the same written numbers can refer to different civil days and therefore different weekdays.
Why is 1900 not a leap year but 2000 is?
Gregorian century years must be divisible by 400. The year 1900 fails that test, while 2000 passes it.
Does the weekday pattern repeat?
Yes. The Gregorian pattern repeats every 400 years because the full cycle contains an exact number of weeks.
Can I check a date before 1582?
Yes. The result uses the proleptic Gregorian calendar, which may differ from the calendar used by a historical document.
Do I need to enter a time or timezone?
No for an ordinary date. Add timezone handling only when you are converting a precise timestamp that may move across midnight.
Similar calculators
You may find the following calculators on the same topic useful:
- Week number calculator. Choose a date to see its week number according to ISO 8601.
- Online drums. Play nine drum sounds on screen or from the keyboard; everything is generated directly in your browser.
- Online timer with sound. Set any everyday interval and follow a clear countdown that can be paused, resumed or reset.
- Barbecue Calculator. Calculate online how much meat is needed for a barbecue per person to ensure there's enough for everyone.
- Calculator for Counting Days Between Dates. Calculate the number of days between two selected dates using our online calculator.
- Calorie Calculator for Walking. Estimate the calories burned while walking, for example, per 1 km, 1 hour, or 10000 steps. Different walking variations are taken into account.
- Optimal Sleep Schedule Finder. Determine the best time to sleep based on sleep phases, cycles, and the 90-minute rule.
- Age Calculator. Provide your birthdate and discover your age.
- Dog Age Calculator. Determine your dog's age in approximate human years.
- Cat Age Calculator. Convert your cat's age to human years online with a degree of approximation.
Share on social media
If you liked it, please share the calculator on your social media platforms. It`s easy for you and beneficial for the project`s promotion. Thank you!