Skip to content
NexUnit home
EnglishEspañol

Day of the Week Calculator

Find the weekday, day of the year and ISO week number for any date.

Day of the week

Sunday

Day of the year
201
ISO week number
29
Leap year
No

Show the work

  1. Days since Thursday, January 1, 1970

    n = date − 1970-01-01

    1969-07-20 − 1970-01-01 = −165

  2. Count on from Thursday (4) and wrap every 7 days

    weekday number = (4 + n) mod 7

    (4 + (−165)) mod 7 = 0

  3. Weekday number to name (0 = Sunday … 6 = Saturday)

    0 = Sunday

Want this on your site? Embed the day of the week calculator.