Formula: ISO-8601 Week & Ordinal Day Formula
- calendarYear: Four-digit calendar year (e.g., 2026).
- calendarMonth1to12: Month of the year (1 = January to 12 = December).
- calendarDayOfMonth: Day of the month (1 to 31).
Convert any calendar date (YYYY, MM, DD) into Ordinal Day of Year, ISO Week Number, and Year % Elapsed.
It evaluates OrdinalDay = CumulativeMonthDays[Month−1] + Day + LeapYearOffset; YearProgress% = (OrdinalDay / DaysInYear) × 100 directly in your browser and renders three custom SVG charts in real time.
Because 1 January 2027 is a Friday, and ISO weeks belong to the year that owns their Thursday. That week's Thursday is 31 December 2026, so the date is in ISO week 53 of 2026, the old ISO year. The ordinal day is still 1 of 365 and 364 days remain, because those figures follow the calendar year, not the ISO year.
It is the Monday to Sunday week that contains the first Thursday of the year. The same week always contains 4 January. If 1 January falls on Friday, Saturday or Sunday, those days belong to the last week of the previous ISO year, and week 1 starts the following Monday.
Fifty-three. A year has 53 ISO weeks when it starts on a Thursday, or when it is a leap year starting on a Wednesday. 2026 starts on a Thursday, so it has a week 53 that runs from Monday 28 December to Sunday 3 January of the following year.
No. It is the length of the year minus the ordinal day, so it counts only the days after your date. For 19 October 2026 it is 73. On 31 December it shows 0. If you want to count the entered day as a day still to come, add one to the figure on the card.
The page returns an error asking for a real Gregorian date. It checks the day against the length of the month, including whether February has 28 or 29 days that year. So 29 February 2028 is accepted, as day 60 of 366, while 29 February 2026 is refused as a date that never existed. Fix the date and the result appears again.
Only when they divide by four hundred, and the page follows that rule. A century year that divides by four hundred keeps its 29 February and has 366 days. Other century years have 365, so 1 March is day 60 in them. The rule drops three leap days every four centuries, which keeps the calendar close to the solar year.
The page only gives the calendar quarter. Subtract 3 from the calendar month, add 12 if the result is zero or less, then divide by 3 and round up. October becomes month 7 of the fiscal year, which is fiscal Q3. January becomes month 10, which is fiscal Q4.
It treats the entered day as completed. On 1 January it shows about 0.27% in an ordinary year, one day out of 365 gone. On 31 December it shows 100%. If you prefer the share of the year done at the start of the day, subtract one from the ordinal before dividing by the year length.
Yes. Early January dates can belong to the last ISO week of the previous year, and late December dates to week 1 of the next. 1 January 2027 is a Friday, so the page shows it as ISO 2026-W53 even though its ordinal day is 1. Always take the ISO year from the headline when you record a week number.
An ordinal date counts days within one year, from 1 on 1 January to 365 or 366 on 31 December. For 19 October 2026 the page gives 292 as the ordinal. A Julian Day Number is a continuous count of days from a starting point thousands of years ago, used in astronomy. People sometimes call ordinal dates Julian dates, which causes confusion.
The page only accepts dates from the first full year of the Gregorian calendar onward. Before that, dates were kept in the Julian calendar, which counts leap years differently. Some countries also kept the Julian calendar into the twentieth century, so the ordinal day written on an old document may not match a Gregorian calculation even for later dates.
Yes. ISO-8601 fixes Monday as day 1 and Sunday as day 7, and a week runs Monday to Sunday without exception. Calendars in some countries start the week on Sunday, and their week numbers can differ from ISO around the turn of the year. When two teams compare week numbers, agree first on which system you both use.
The default date is 19 October 2026, a Monday. The page reports it as ordinal day 292 of 365, labelled ISO 2026-W43, with 73 days left in the year and 80% of the year elapsed. The interpretation line places it in Q4, the last calendar quarter.
The ordinal day is easy to check by counting backwards. October has 12 days left after the 19th, November has 30 and December 31. That is 73 days, the remaining figure on the card. Take 73 away from the 365 days in the year and you get 292, the ordinal on the card.
The remaining-days line does not count the date you entered. On 31 December it reads 0, not 1. If you are counting down to the end of the year and want to include today, add one.
The percentage is the ordinal day divided by the length of the year: 292 over 365 is 80.0%. On 1 January the page shows about 0.27% elapsed, because the first day counts as one day done. If you want the share of the year completed at the start of a date rather than the end, subtract one from the ordinal first.
The headline shows the week as ISO 2026-W43: the ISO year, a W, and a two-digit week number. The engine applies the full ISO-8601 rule rather than counting seven-day blocks from 1 January. The supporting line repeats the week as 43; its label still carries the word approximate, but the value follows the standard.
You can confirm it by counting. The year 2026 starts on a Thursday, so ISO week 1 runs from Monday 29 December of the previous year to Sunday 4 January. Week 2 starts on Monday 5 January, which is day 5. From day 5 to day 292 is (292 minus 5) divided by 7, exactly 41 weeks. So 19 October is the Monday that opens week 2 plus 41, which is week 43.
A naive shortcut, dividing the ordinal day by 7 and rounding up, gives 42 for this date. In 2026 that shortcut is right on Thursdays to Sundays and one week low on Mondays, Tuesdays and Wednesdays, and the pattern shifts every year with the weekday of 1 January. That is why spreadsheet formulas built on the shortcut disagree with ISO calendars, and why the page does not use it.
ISO-8601 weeks start on Monday. Week 1 of a year is the week that contains that year's first Thursday. An equivalent rule is that week 1 is the week containing 4 January. Every week belongs wholly to one ISO year, so the first few days of January can fall in the last week of the previous ISO year, and the last few days of December in week 1 of the next.
Most ISO years have 52 weeks. A year has 53 when it starts on a Thursday, or when it is a leap year that starts on a Wednesday. 2026 starts on a Thursday, so it has 53 ISO weeks. Thursday 31 December 2026 is in week 53, and the following Friday, 1 January of the next year, is also in week 53 of 2026, not week 1.
The page shows this case directly. Enter 1 January 2027 and the headline reads ordinal day 1 of 365, ISO 2026-W53, with 364 days left and 0.274% of the year elapsed. The ordinal and the countdown belong to the new calendar year while the week belongs to the old ISO year. The interpretation sentence only says W53, so read the headline when you need the ISO year as well, for example when building a file name or a report key.
One formula covers most dates. Number the weekdays from Monday as 1 to Sunday as 7. Take the ordinal day, subtract the weekday number, add 10, divide by 7 and drop any fraction. The result is the ISO week.
For 19 October 2026: the ordinal is 292 and the weekday is Monday, so 1. Then 292 minus 1 plus 10, divided by 7, gives exactly 43. For Sunday 4 January 2026, day 4 with weekday 7, it is 4 minus 7 plus 10, which is 7, divided by 7, giving week 1. For Thursday 1 January 2026 it is 1 minus 4 plus 10, which is 7, divided by 7, giving week 1 again.
Two edge cases need attention. If the result is 0, the date belongs to the last week of the previous ISO year, which is week 52 or 53 depending on that year. If the result is 53 and the year has only 52 ISO weeks, the date belongs to week 1 of the next year.
Spreadsheets do this with an ISO week function, and most programming languages have one in their date library. The page gives the same answer, so the hand version is mainly useful for checking a script or understanding why a January date lands in the previous year.
A year is a leap year if it divides by 4, except that century years must also divide by four hundred. So most century years are not leap years, while those divisible by four hundred are. The engine follows this rule, and the card shows the year length as either 365 or 366 days.
Only dates from 1 March onward are affected. In an ordinary year 1 March is day 60. In a leap year it is day 61, because 29 February takes day 60. Dates in January and February have the same ordinal in both kinds of year. Day 366 exists only in a leap year, on 31 December.
The remaining-days line is not affected for dates after February. In a leap year, 19 October moves one ordinal day later, and the year is one day longer, so the count of days left is still 73. The percentage elapsed shifts slightly, because both the ordinal and the length of the year change.
The leap-day preset shows the extra day itself. Enter 29 February 2028 and the page returns ordinal day 60 of 366, ISO 2028-W09, with 306 days left and 16.393% of the year elapsed. In an ordinary year that date does not exist and the page refuses it.
The quarter appears only in the interpretation sentence, not as a separate line. It is the month divided by 3 and rounded up: January to March is Q1, April to June Q2, July to September Q3, and October to December Q4. That is why October 2026 shows Q4 and 29 February 2028 shows Q1.
This is always the calendar quarter. The page has no input for the start of a fiscal year, and many organisations use fiscal years that start in another month. If your year begins on 1 April, October falls in the third fiscal quarter, Q3. If it begins on 1 July, October is in Q2.
To convert, count how many months your fiscal year starts after January, subtract that from the calendar month, add 12 if the result is zero or less, then divide by 3 and round up. For an April start, October is month 10 minus 3, which is 7, and 7 divided by 3 rounded up is 3.
The page checks that the date is real before computing anything. Enter 31 February 2026 and it returns an error asking for a real Gregorian date, instead of an ordinal day. The same applies to 31 April, 29 February in an ordinary year, a month of 0 or 13, and any value that is not a whole number.
There is also a lower limit on the year. The page only accepts dates from the first full year of the Gregorian calendar, which was introduced in the late sixteenth century. Earlier dates were recorded in the Julian calendar, and a Gregorian ordinal or ISO week for them would be a calculation about a calendar nobody was using.
If you get an error, check the order of the fields first. Typing the day into the month box is the usual cause, since a day of 19 is a valid day but not a valid month.
Ordinal dates are common where a compact, sortable day count helps. ISO-8601 allows a date to be written as the year and ordinal day, so 19 October 2026 becomes 2026-292 in that notation. Manufacturing lot codes, satellite data products and some log formats use this style because it sorts correctly and is short.
ISO week dates are written with a W, such as 2026-W43-1 for the Monday of week 43. They are widely used in European business planning, retail reporting and manufacturing schedules, where a week is the natural unit and Monday is the start of it. Be careful when sharing week numbers with colleagues who use other conventions. Some calendars start weeks on Sunday or count week 1 from 1 January, and their week numbers will not match ISO.
For planning, the remaining-days and percentage lines are the most useful figures here. They tell you that 19 October leaves 73 days, or about a fifth of the year, which is the kind of number that frames a year-end target. When the exact week matters, take the ISO year and week from the headline rather than the interpretation sentence, since only the headline names the ISO year.