Free calculatorLive resultsSteps and sourcesEmbed on your site, free

Day Into Year Calculator

Day of the Year Calculator works out Day of the week and ISO weekday number (Monday = 1) from Date. The default figures on this page give day of the year of 201; change any entry and the result, the working and the sources update together.

Day of the year
201
Day of the Week Calculator
Day of the week
Sunday
ISO weekday number (Monday = 1)
7
US weekday number (Sunday = 1)
1
Days left in the year
164 days
Days in that year
365 days
ISO week number
29
ISO week-numbering year
1,969
ISO week date
1969-W29-7
Calendar year
1,969
Quarter
3
Month
July
Day of the month
20
Leap year
no
Occurrence of that weekday in the month
3
Zeller’s congruence
q=20, m=7, K=69, J=19: (20 + floor(13*(7+1)/5)=20 + 69 + floor(69/4)=17 + floor(19/4)=4 + 5*19=95) mod 7 = 1
Summary
1969-07-20 falls on a Sunday - day 201 of 1969, ISO week 1969-W29.
Worked out from ISO 8601-1:2019, Date and time - Representations for information interchange and 2 other sources.

Your figures

Updates as you type
YYYY-MM-DD. Any date in the proleptic Gregorian calendar.

How this is worked out

3 steps
  1. Zeller's congruence for 1969-07-20: q=20, m=7, K=69, J=19: (20 + floor(13*(7+1)/5)=20 + 69 + floor(69/4)=17 + floor(19/4)=4 + 5*19=95) mod 7 = 1, and h = 1 counts from Saturday, so the day is Sunday.
  2. Day of the year: 201 of 365 (1969 is not a leap year), leaving 164 days.
  3. ISO week date: 1969-W29-7. The week belongs to 1969 because that is the year holding its Thursday.

Its 5 worked examples are re-run on every release, last on 15 September 2026. What changed

Sources and references

3 sources
ISO 8601-1:2019, Date and time - Representations for information interchange
Ordinal dates (day of the year), week dates, and the rule that a week belongs to the year containing its Thursday.
Christian Zeller, "Kalender-Formeln", Acta Mathematica 9 (1887), 131-136
1887 · Zeller’s congruence, the closed-form weekday formula shown as the working.
Howard Hinnant, chrono-Compatible Low-Level Date Algorithms
days_from_civil, the exact day-number conversion the weekday is taken from.

What the Day of the Year Calculator calculates

The weekday any date falls on, with the hand working (Zeller’s congruence), the day of the year, the days left in the year, the quarter, the ISO week and the ISO week-numbering year, which is not always the calendar year. In birth-date mode it also lists the weekday of the coming anniversaries.

How to use this Day of the Year Calculator

Enter Date. Day of the week updates as you type. Change one figure at a time to see what drives the result.

How the result is worked out

Open “How this is worked out” beside the result for the step-by-step calculation behind Day of the week, ISO weekday number (Monday = 1) and US weekday number (Sunday = 1).

The method follows ISO 8601-1:2019, Date and time - Representations for information interchange, Christian Zeller, "Kalender-Formeln", Acta Mathematica 9 (1887), 131-136 and Howard Hinnant, chrono-Compatible Low-Level Date Algorithms.

What you can compare

Change one input at a time to see how it affects Day of the week, ISO weekday number (Monday = 1) and US weekday number (Sunday = 1). The inputs you can vary are Date.

Results are general information, not financial, tax, legal, medical or engineering advice. Check any decision that matters with a qualified professional.

Embed this calculator on your website

Copy this code into any page. The calculator appears with the figures currently entered, sizes itself to fit, and a small credit line links back here. Free, no account, no ads inside it, no tracking of your readers. Set your own figures and fixed fields; Personal removes the credit line, sets your colour and shows you which sites use it.

Preview

See something wrong? Report a problem with this calculator

Frequently asked questions

What information do I need for the Day of the Year Calculator?

You need Date. The page opens with default figures that give day of the year of 201, so you can see the scale before entering your own.

What does this Day of the Year Calculator show?

It shows Day of the week, ISO weekday number (Monday = 1), US weekday number (Sunday = 1), Day of the year, Days left in the year, Days in that year, ISO week number and ISO week-numbering year, with the working and any warnings for your entries.

Can I check how the Day of the Year Calculator result was calculated?

Yes. The “How this is worked out” section shows the calculation steps, and the sources section identifies the references used for the method.

Related calculators

View all related calculators11 more