Day of Week Calculator
Weekday index = Date(year, month − 1, day).getDay()Free online tool
Enter a valid calendar date to find its weekday. For example, August 6, 2026 is a Thursday.
Instant calculation
Enter a year, month and day to find out which day of the week it falls on.
Calculation inputs are processed in your browser. Copying or sharing a result is your choice. See our privacy policy for advertising and technical logs.
Tool and explanation maintained by Leslie. Report an incorrect result.
Input steps
Type the year, month and day.
See the day of the week.
Check that the date exists; invalid dates such as February 30 are rejected. Historical local calendar transitions are not modeled.
The formula
The implementation constructs a local JavaScript Date, rejects overflow dates such as February 30, then reads getDay(). Sunday is index 0 and Saturday is index 6. It uses Gregorian calendar rules, including leap years; it does not use Zeller's formula.
Weekday index = Date(year, month − 1, day).getDay()Check the method
Each example follows the same formula used by the calculator.
Date(2026, 7, 6).getDay() = 4; index 4 is ThursdayThursdayJanuary 1, 2000 was a Saturday, and June 15, 2026 is a Monday. Use a four-digit year and a month from 1 to 12. An impossible date such as February 30 should be rejected.
January 1, 2000 is Saturday and January 1, 2026 is Thursday under Gregorian rules. A weekday identifies a place in the seven-day cycle, not whether a business is open. Enter month 1 for January and use a four-digit year to avoid ambiguous shorthand.
A date such as February 30 is invalid and must not be interpreted as a date in March. Historical records can use different calendar systems even when their written year, month and day look familiar. This tool does not convert Julian dates or local historical calendar adoption rules. For historical research, establish the source calendar before relying on the displayed weekday.
Method notes updated by Leslie.
Common questions
The tool uses Gregorian calendar arithmetic. Historical documents can use the Julian calendar or a local adoption date, so a displayed weekday may not match the original historical record.
Continue calculating