Weekday From Date
Calculator

Inputs

Weekday number (0 = Sunday)
4

Results

Weekday number (0 = Sunday)
4
Falls on a weekend (1 = yes)
0
Falls on a weekday (1 = yes)
1
Days to next Monday
4

Time and date results

Weekday number (0 = Sunday)4
Falls on a weekend (1 = yes)0
Falls on a weekday (1 = yes)1
Days to next Monday4

formula-map diagram

Weekday number (0 = Sunday)
4
Falls on a weekend (1 = yes)
0
Falls on a weekday (1 = yes)
1
Days to next Monday
4

Time relationship

Formula

weekday = day of week per the proleptic Gregorian calendar (0 = Sunday … 6 = Saturday)

= 4

Note

This is a simplified model: it uses fixed conversions (60 minutes per hour, 24 hours per day, 7 days per week, 365 days per year) and ignores leap years, daylight saving changes, public holidays and irregular month lengths. Check the result against a real calendar before relying on it.

Example: with the default inputs, calculator.timedate.weekday_number is 4.

More in Time and date

See all →

Frequently asked questions

How do I find the day of the week for a date?+

Enter a year, month and day and the calculator returns the weekday number using the proleptic Gregorian calendar, where 0 is Sunday and 6 is Saturday.

How do I read the weekday number?+

It runs from 0 for Sunday to 6 for Saturday, so 1 is Monday, 2 Tuesday, and so on. Monday is therefore not 0 here.

Does it tell me if the date is a weekend?+

Yes. It flags the date as a weekend if it falls on Saturday or Sunday, and as a weekday otherwise. It does not know about public holidays.

What does days to next Monday mean?+

It is the number of days from your date until the next Monday, using (8 minus the weekday number) modulo 7. If your date is a Monday, the result is 0.

Does it work for dates in the distant past or future?+

It applies the Gregorian calendar to any date you enter, even before the calendar was adopted. For historical dates in other calendars, the result may differ from the weekday people used then.