Ordinal (Julian) Date Converter

Enter a date or a YYYY-DDD ordinal date and pick a direction to convert.

How it is calculated

The tool converts in three ways. Date to ordinal: type a date as YYYY-MM-DD; it must be a real calendar date (February 30 is rejected). The day of the year counts from 1 on January 1, and the result is the ISO 8601 ordinal date YYYY-DDD, the four-digit year and the day padded to three digits. Ordinal to date: type YYYY-DDD or YYYYDDD; DDD must be 001 to 365, or 366 only in a leap year. Legacy YYDDD to date: type exactly five digits; the year is read with a fixed window, YY 00 to 68 meaning 2000 to 2068 and 69 to 99 meaning 1969 to 1999. Anything not matching the expected pattern gives no result. Leap years follow the Gregorian rule, so 1900 has no day 366 and 2000 does. This is the ordinal date, not the astronomical Julian Day Number.

Worked example

Convert March 15, 2026, to ordinal form. January has 31 days and February 2026 has 28 (2026 is not a leap year), so March 15 is day 31 + 28 + 15 = 74. Written with the full year and three digits for the day, the ISO 8601 ordinal date is 2026-074, and the tool also shows the day of the year as 74 and the year as 2026. Going back, 2026-074 (or 2026074) returns 2026-03-15. A packaging code 26074 in the legacy YYDDD option gives the same date, because 26 falls in the 2000 to 2068 window.

Try this example →

Common mistakes

  • Typing the date as 15/03/2026 or 03-15-2026. The date direction only accepts YYYY-MM-DD, otherwise there is no result.
  • Leaving off the leading zeros. The day part has three digits, so day 74 of 2026 is 2026-074, not 2026-74.
  • Typing a five-digit code such as 26074 with the ISO option. A two-digit year is ambiguous; use the legacy YYDDD option, and remember that it can only stand for 1969 to 2068.
  • Assuming a day number past 365 is always valid. Day 366 exists only in leap years such as 2024; 2026-366 returns nothing.
  • Confusing this with the astronomical Julian Day Number (a count like 2461000) or with the old Julian calendar. This tool only converts between a calendar date and its day-of-year form.

Sources

About this calculator

An ordinal date — often called a “Julian date” in manufacturing and logistics, though it's unrelated to the astronomical Julian Day Number — identifies a calendar day by its year and its sequential position within that year rather than by month and day. The ISO 8601 form is YYYY-DDD (or YYYYDDD without the hyphen): the full four-digit year and the day of the year from 001 to 365, or 366 in a leap year, so July 1, 2026, is 2026-182 and December 31, 2026, is 2026-365. This calculator converts a calendar date to that form and back.

Food and pharmaceutical packaging, military logistics and some older systems still stamp a shorter YYDDD code with a two-digit year, such as 26182. Because the century is missing, the tool reads it only through a separate, clearly labeled legacy option, with a fixed window: 00 to 68 means 2000 to 2068 and 69 to 99 means 1969 to 1999. A single sortable number makes shelf-life and expiry calculations a matter of simple subtraction, which is why both forms are popular; the four-digit one is the unambiguous choice.

Was this helpful?

You can pick up to 3 reactions.

Note from the editors

The five-digit YYDDD code seen on food labels and mainframe files drops the century, so it has its own legacy option, which reads 00 to 68 as 2000s and 69 to 99 as 1900s. Which system produced your code?

Comments

  • Be the first to comment.

Popular calculators

All Calculators