How this instrument works
Every date in the Gregorian calendar corresponds to exactly one day of the week, but figuring out which one from scratch means correctly tracking every leap year and every month's varying length between a known reference point and the date in question — easy to get wrong by hand, trivial for an instrument to get right every time.
The general method behind essentially every day-of-week technique, whether it's a mental-math trick or code running behind the scenes, is the same: count the total number of days between a known anchor date (for example, January 1, 2000, which was a Saturday) and the target date, then take that count modulo 7. The remainder maps onto a weekday, and because leap days are just part of the ordinary day count, they're handled automatically without any special-case logic.
This instrument reports the result two ways: Day of the week as a name (Sunday through Saturday), and Day index as the same result numbered 0 through 6, using the common software convention where 0 is Sunday and 6 is Saturday — the same scheme used by, for example, JavaScript's Date.getDay(). Note this differs from the ISO 8601 standard, which numbers Monday as 1 and Sunday as 7.
- Enter Date — it defaults to today, but any date works, past or future.
- Read Day of the week for the plain weekday name.
- Read Day index for the same result as a number, 0 for Sunday through 6 for Saturday.
- Use it to check historical dates, plan which weekday a future date lands on, or settle a trivia argument.
Worked example — January 1, 2000
Enter 2000-01-01 into Date — the start of the Y2K new year, a widely known reference date. Day of the week reads Saturday.
Day index reads 6, matching this instrument's 0 = Sunday through 6 = Saturday convention. January 1, 2000 being a Saturday is independently well documented, making it a solid anchor point for checking that any day-of-week method — including this one — is working correctly.
Questions
Why does Day index start at 0 for Sunday instead of 1 for Monday?
It follows the common software convention rather than the ISO 8601 calendar standard. Many programming languages — JavaScript's Date.getDay() among them — number weekdays 0 (Sunday) through 6 (Saturday), which is the scheme this instrument reports. ISO 8601 instead numbers Monday as 1 through Sunday as 7; if you need that convention, just shift the result yourself.
Does this account for leap years automatically?
Yes, without any special handling needed. Because the calculation is based on the actual number of calendar days between a known date and your target date, every leap day already shifted the count correctly the moment it happened — the modulo-7 step at the end works the same regardless of how many leap years fall in between.
Can I check dates from before I was born, or centuries ago?
Yes — enter any date and the instrument applies the same Gregorian-calendar day count. Keep in mind that for dates before the Gregorian calendar's actual 1582 adoption, this describes what the modern rule would say for that date, not necessarily which calendar was actually in use at the time in a given country.
What day of the week was the Apollo 11 Moon landing?
Sunday. July 20, 1969, the date Apollo 11 landed on the Moon, was a Sunday — a fact independently documented in the historical record and a useful second check on any day-of-week method beyond the January 1, 2000 example, since it lands on a completely different day of the week.
Is this the same as looking at a perpetual calendar?
The result is identical, but the method differs. A perpetual calendar is a pre-built lookup table you scan by eye; this instrument computes the answer directly from the date using day-counting and modular arithmetic, which is exactly what a perpetual calendar's table was built from in the first place.