Ordinal (Julian) Date Converter
Enter a date or a YYYY-DDD ordinal date and pick a direction to convert.
Result
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.
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, not2026-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-366returns 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
- International standard date and time notation (ordinal date YYYY-DDD) — Markus Kuhn, hosted by NASA GSFC FITS Support Office
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.
Comments
- Be the first to comment.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm's Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
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?