What Is the Day of the Year?

The day of the year, also called the ordinal day, counts a date's position from the start of its calendar year.

Day of the Year: 01 Jan, Day 1; 01 Mar, Day 60 or 61; 31 Dec, Day 365 or 366.

Counting dates from January

In the Gregorian calendar, 1 January is day 1. The next date is day 2, and the count continues through the year. In an ordinary year, 31 December is day 365. In a leap year, the extra date 29 February shifts all following ordinal day numbers by one, so 31 December is day 366.

Ordinal numbers can make some reports and schedules compact. A system might describe the 100th day of the year rather than writing a month and day. But the year must still be included: day 100 occurs every year, and the calendar date depends on whether the year is a leap year.

How to calculate it

A simple human method is to count the days in all earlier months and add the date number. For 10 March in a common year, January contributes 31 days and February contributes 28, then add 10. The result is day 69. In a leap year, February has 29 days, so 10 March is day 70.

For code, prefer a tested date library or calculate the difference between the date and the first day of its year using calendar-aware operations. Be careful with time zones: converting a local date to UTC can shift it to the previous or next date. If the task is a calendar ordinal, derive it from the date in the relevant calendar rather than from an arbitrary UTC timestamp.

Ordinal dates in ISO 8601

ISO 8601 supports an ordinal date form that writes the year followed by the day number, for example 2026-069 for the 69th day of 2026. This is different from the more common year-month-day form such as 2026-03-10. A parser must know which form it is reading.

Do not confuse the day of the year with an ISO week number. The ordinal date counts individual days from 1 to 365 or 366. An ISO week groups dates into Monday-to-Sunday weeks and assigns a week-year under a separate rule.

Where it is useful

Ordinal days appear in scientific logs, manufacturing schedules, meteorology and systems that need simple within-year indexing. They can make data compact, but are less familiar to many readers than a month and day. Include a label or use a standard date format when sharing values with a general audience.

The live clock on the home page shows the day-of-year count. For leap-day rules, read What Is a Leap Year?

Ordinal dates in data formats

ISO 8601 can represent an ordinal date as YYYY-DDD, for example 2026-100 for the 100th day of 2026. Some scientific and industrial systems prefer ordinal day numbers because they sort easily and avoid month-length tables.

When you convert an ordinal day back to a month and day, remember leap years: day 60 is 1 March in a common year and 29 February in a leap year. Always keep the year with the ordinal value. A bare “day 246” is not enough to recover a calendar date.

The live clock on the ChillRelaxLoop home page shows the current day of the year using your browser's local calendar. That display is a convenience readout, not a separate time scale.