Day of Year Calendar
Interactive day of year calendar showing DOY numbers 1-365/366. Find any date's ordinal day number or lookup dates by DOY.
About
The ordinal date system assigns each day a sequential number from 1 (January 1) to 365 or 366 in leap years. This numbering follows ISO 8601 conventions used in aviation, military operations, and scientific data logging where unambiguous date references prevent costly errors. Misinterpreting dates in logistics or scheduling systems has caused supply chain failures exceeding $100M annually across industries. The day-of-year format eliminates month-boundary confusion entirely.
This tool calculates DOY using the formula DOY = d + floor(275mΓ·9) β K Γ floor((m+9)Γ·12) + L, where K depends on leap year status. Leap year detection uses the Gregorian rule: divisible by 4, except century years must also divide by 400. February 29 exists only when year mod 400 = 0 or (year mod 4 = 0 β§ year mod 100 β 0).
Formulas
The day of year (DOY) represents the ordinal position of a date within its year, ranging from 1 to 365 (or 366 in leap years).
Where Jan0 = December 31 of the previous year (day zero reference), and 86400000 ms represents one day in milliseconds.
Leap year determination follows the Gregorian calendar rule:
Reverse lookup from DOY to calendar date:
ISO week number calculation uses the Thursday-based system where week 1 contains January 4:
Where weekday = 1 (Monday) to 7 (Sunday).
Reference Data
| Month | Days | Start DOY (Common) | End DOY (Common) | Start DOY (Leap) | End DOY (Leap) |
|---|---|---|---|---|---|
| January | 31 | 1 | 31 | 1 | 31 |
| February | 28/29 | 32 | 59 | 32 | 60 |
| March | 31 | 60 | 90 | 61 | 91 |
| April | 30 | 91 | 120 | 92 | 121 |
| May | 31 | 121 | 151 | 122 | 152 |
| June | 30 | 152 | 181 | 153 | 182 |
| July | 31 | 182 | 212 | 183 | 213 |
| August | 31 | 213 | 243 | 214 | 244 |
| September | 30 | 244 | 273 | 245 | 274 |
| October | 31 | 274 | 304 | 275 | 305 |
| November | 30 | 305 | 334 | 306 | 335 |
| December | 31 | 335 | 365 | 336 | 366 |
| Notable DOY | Date (Common Year) | Date (Leap Year) | Significance |
|---|---|---|---|
| 1 | January 1 | January 1 | New Year's Day |
| 32 | February 1 | February 1 | Start of February |
| 60 | March 1 | February 29 | Leap day / March start |
| 91 | April 1 | March 31 | Q2 start (common) |
| 100 | April 10 | April 9 | Day 100 milestone |
| 152 | June 1 | May 31 | Summer begins |
| 182 | July 1 | June 30 | Year midpoint (common) |
| 183 | July 2 | July 1 | Year midpoint (leap) |
| 200 | July 19 | July 18 | Day 200 milestone |
| 256 | September 13 | September 12 | Programmer's Day (28) |
| 273 | September 30 | September 29 | Q3 end |
| 300 | October 27 | October 26 | Day 300 milestone |
| 335 | December 1 | November 30 | December start (common) |
| 365 | December 31 | December 30 | Year end (common) |
| 366 | - | December 31 | Year end (leap only) |