time calculator

Day of Week Calculator

Enter any date to instantly see whether it lands on Monday, Saturday, or another day of the week.

Results

Day index (0=Sun)
5
Day name
Friday
Weekend? (1=yes)
0

Overview

Need to know whether a birthday, deadline, or historical date lands on a Monday or a Saturday without flipping through a paper calendar? This day-of-week calculator lets you type in any Gregorian date and instantly see the weekday name plus whether it falls on a weekend. It is handy for planning meetings, checking travel dates, or just satisfying curiosity about which day of the week a past event occurred.

How to use this calculator

  1. Enter the calendar year of the date you are interested in, such as 1990, 2025, or 2050.
  2. Enter the month as a number from 1 (January) through 12 (December).
  3. Enter the day of the month, making sure it falls within the valid range for that month and year (for example, February 29 is valid only in leap years).
  4. Run the calculation to see the weekday index, weekday name, and a weekend flag that shows whether the date falls on Saturday or Sunday.
  5. Use the weekday name to schedule meetings, appointments, or travel, or to verify the day for birthdays, anniversaries, and historical events.
  6. If you are coordinating across time zones, decide which local calendar you are anchoring to (for example, the event location’s time zone) and use that as your reference date.

Inputs explained

Year
The four-digit year for the date you are checking, such as 1985, 2024, or 2030. The calculator assumes the proleptic Gregorian calendar, which aligns with the modern calendar for most practical dates.
Month
The month number from 1 through 12. For example, 1 = January, 2 = February, 3 = March, up to 12 = December. Be sure to match the month with a valid day and year combination (for instance, use 2/29 only in leap years).
Day
The day of the month for the date you want to check. Valid ranges differ by month (for example, 30 days in November, 31 in July). The calculator expects a valid date; an invalid combination may produce an unexpected result depending on the underlying date engine.

Outputs explained

Day index (0=Sun)
A numeric weekday index following the JavaScript `getDay()` convention: 0 = Sunday, 1 = Monday, 2 = Tuesday, 3 = Wednesday, 4 = Thursday, 5 = Friday, 6 = Saturday. This is useful when building automations or integrating with code that expects numeric weekdays.
Day name
The plain-language weekday name corresponding to the index, such as Monday, Wednesday, or Saturday. This is the most human-friendly representation for most uses.
Weekend? (1=yes)
A simple flag that marks Saturdays and Sundays as weekend days (1) and Monday through Friday as weekdays (0). This reflects common North American and European workweek patterns; some regions use different weekend days.

How it works

You enter a year, month, and day using the Gregorian calendar (the system used by most of the world today).

The calculator constructs a date and uses the same underlying weekday logic that programming languages like JavaScript expose via `getDay()`, which returns a number from 0 to 6.

We map that numeric index to a human-friendly weekday name—Sunday through Saturday—using the convention 0 = Sunday, 1 = Monday, and so on up to 6 = Saturday.

We then classify the result as either a weekend or weekday based on a Saturday/Sunday weekend definition, setting the weekend flag to 1 for Saturday or Sunday and 0 for Monday through Friday.

Because the weekday is tied to the calendar date itself, not the time of day, daylight saving time changes do not affect the weekday result in this simplified model.

The output is a small bundle of information: the numeric index, the weekday name, and a simple weekend indicator you can use for quick planning or automation.

Formula

Let d be the date constructed from year, month, and day in the Gregorian calendar.\nIndex = d.getDay() (0 = Sunday, 1 = Monday, …, 6 = Saturday)\nDay name = lookup[Index]\nWeekend flag = 1 if Index is 0 or 6, else 0

When to use it

  • Checking whether a project deadline, exam date, or launch date falls on a weekday or a weekend.
  • Verifying the day of the week for birthdays, anniversaries, historical events, or holiday observances.
  • Planning recurring meetings by testing which calendar dates land on a specific weekday in a given month or year.
  • Coordinating travel and time off by seeing whether your departure or return falls on a workday.
  • Building simple tools or scripts that need to convert dates into weekdays without re-implementing date math.

Tips & cautions

  • If you are planning events that span time zones, pick the location whose calendar matters most—for example, the local time at the event site—and enter that date here to determine the weekday.
  • Pair this calculator with a date-add or date-difference tool to see how shifting a deadline by a certain number of days changes the weekday.
  • Remember that some countries and organizations treat Friday or other days as part of the weekend; use the day name to reason about those custom definitions.
  • For historical research, confirm that the date you are using is in the Gregorian calendar; older dates in some regions may have used the Julian calendar with different weekday alignments.
  • The weekend flag is based on a Saturday/Sunday weekend convention and does not adapt to regions with Friday–Saturday or other nonstandard weekends.
  • The calculator assumes the Gregorian calendar for all dates; it does not model historical calendar reforms or switches between Julian and Gregorian calendars in specific countries.
  • It does not account for holidays or local non-working days—only the raw weekday is shown.
  • Extremely old or far-future dates may behave differently depending on how the underlying date engine handles them, and small inconsistencies may appear compared to specialized historical calendar tools.

Worked examples

July 4, 2025 (U.S. Independence Day)

  • Input: year = 2025, month = 7, day = 4.
  • Index = 5, which corresponds to Friday.
  • Day name = Friday; weekend flag = 0 (it is a weekday even though it may be a holiday).

January 1, 2028 (New Year’s Day)

  • Input: year = 2028, month = 1, day = 1.
  • Index = 6, which corresponds to Saturday.
  • Day name = Saturday; weekend flag = 1, so it lands on the weekend.

February 29, 2032 (leap day)

  • Input: year = 2032, month = 2, day = 29 (a valid leap-year date).
  • The calculator determines the weekday index for this leap day.
  • You can use the result to schedule special events or just see which day of the week the leap day falls on.

Deep dive

This day-of-week calculator makes it easy to see which weekday any given date falls on. Enter a year, month, and day to get the weekday index, a human-readable day name, and a simple weekend flag that marks Saturdays and Sundays. It is useful for everyday scheduling, project planning, and quick historical checks when you want more than just a calendar grid.

Because the tool uses the same weekday logic as common programming languages, it is also helpful for developers and power users who need to confirm how dates map to numeric weekdays. You can quickly explore how future or past dates line up with Mondays, Fridays, or weekends before committing to travel plans, product launches, or recurring events.

FAQs

Can this calculator handle historical dates far in the past?
For most practical purposes, yes. It applies the Gregorian calendar rules to all dates, which matches the modern calendar for recent centuries. However, some countries adopted the Gregorian calendar at different times, so for very old dates official historical weekdays may differ from this simplified model.
What if my weekend is Friday and Saturday instead of Saturday and Sunday?
The built-in weekend flag assumes Saturday and Sunday as the weekend. If your workweek is different, use the weekday name or index and apply your own logic—for example, treat index 5 (Friday) and 6 (Saturday) as weekend days.
Does daylight saving time or time zone changes affect the weekday result?
No. The weekday is tied to the calendar date, not the clock time. Daylight saving time changes may shift the local time but do not alter which weekday a date belongs to in this simplified approach.
Can I use this to schedule recurring events such as "every second Tuesday"?
Yes. You can plug in candidate dates and check which weekday they fall on, then build a list of dates that match your pattern. For complex recurrence rules, you may still want a dedicated calendar tool, but this calculator gives you a quick way to verify individual dates.
Why does the index start at 0 for Sunday?
The index follows the JavaScript `getDay()` convention where Sunday is 0 and Saturday is 6. Many programming environments use the same mapping, which makes it convenient for anyone who needs both human-readable names and numeric weekdays for scripts or integrations.

Related calculators

This day-of-week calculator is for general informational and planning purposes only. It assumes the Gregorian calendar and a Saturday/Sunday weekend definition, and it does not account for historical calendar reforms, regional holidays, or alternative weekend patterns. Always verify critical scheduling details with an official calendar or scheduling system.