Converter
Julian Date to Calendar Date
Paste a Julian date code and read it as an ordinary date. Works with the
7-digit YYYYDDD, 5-digit YYDDD and bare 3-digit
day-of-year formats found on packaging, labels and reports.
Decode a Julian date
- Julian Date (JD)
- Modified JD (MJD)
- Julian Day Number
Click or tap any result to copy it.
How to read a Julian date code
The industrial “Julian date” is the day of the year, usually with the year in front.
The last three digits are always the day number, from 001 for January 1 up to
365 (or 366 in a leap year) for December 31.
| Code | Reads as | Calendar date |
|---|---|---|
| 2026202 | Year 2026, day 202 | Tuesday, July 21, 2026 |
| 26202 | Year (20)26, day 202 | Tuesday, July 21, 2026 |
| 202 | Day 202 of a year you know from context | July 21 in a common year, July 20 in a leap year |
| 24060 | Year 2024 (leap), day 60 | Thursday, February 29, 2024 |
| 25365 | Year 2025, day 365 | Wednesday, December 31, 2025 |
Converting by hand
- Split off the last three digits: that is the day of the year.
- Read the rest as the year, and check whether it is a leap year (divisible by 4; century years only if divisible by 400).
- Subtract the lengths of the months in turn — 31 for January, 28 or 29 for February, 31 for March and so on — until what is left fits in the next month. That remainder is the day of the month.
For 26202: 202 − 31 (Jan) − 28 (Feb) − 31 (Mar) − 30 (Apr) − 31 (May) − 30 (Jun) = 21, and
July comes next, so the date is July 21, 2026. The day-number table
gives the range for every month in common and leap years, so you can skip the arithmetic.
Other layouts: 4-digit, 6-digit and longer codes
The decoder takes 3, 5 and 7 digits. Rewrite other layouts first:
- YDDD (4 digits, MRE cases):
6202is a year ending in 6, day 202. Enter2026202, or use the MRE decoder. - DDDY (4 digits, some food plants): the year digit comes last, so day 145 of 2026 is
1456. If reading a code as YDDD would give a day over 366, it is probably DDDY; when both readings are possible, check the maker's key. - CYYDDD (6 digits, JD Edwards):
126202is century 1 (the 2000s), 26, day 202 — enter2026202, or use the JD Edwards converter. - Lot codes: a Julian date is often embedded among letters and plant or line numbers. Look for a 3-digit group from 001 to 366 with one or two year digits next to it.
A 7-digit number starting with 24, especially one with a decimal, is an astronomical Julian Date, not a day-of-year code. Decode it with the astronomical converter.
Reading date codes on products
Manufacturers stamp these codes to record when a batch was made. On USDA-graded eggs, the pack date is a 3-digit day-of-year code printed near the plant number. Military MRE cases use a 4-digit YDDD code. Canned goods and other packaged foods vary: many use a plain day of year, a YYDDD code, or a manufacturer-specific plant and line code. These are production dates, not expiration dates, and decoding them tells you how old the product is.
Related tools
Frequently asked questions
How do I convert a 5-digit Julian date like 26202?
Split it into the year and the day of year. "26" is the two-digit year (2026) and "202" is the day of year. January to June hold 181 days in a common year, so day 202 is July 21. The converter above does this automatically — just paste the code.
How do I convert a 4-digit Julian date?
A 4-digit code is usually YDDD: the last digit of the year followed by the day of year, as on MRE cases. Work out the full year from context (6202 is most likely 2026) and enter it as a 7-digit code, 2026202. A few food makers put the year digit last (DDDY), so day 145 of 2026 is printed 1456 instead of 6145. If reading a code as YDDD gives a day over 366, it is probably DDDY; otherwise check the maker’s key.
What does the Julian date on my food mean?
Most food and beverage manufacturers stamp a day-of-year code showing when the item was produced or packed. A 3-digit code is the day of year (001–366); longer codes add a year digit or two and often plant and line numbers. It is a production date, not an expiration date.
How is a two-digit year interpreted?
This tool uses the POSIX convention: years 00–68 map to 2000–2068 and 69–99 map to 1969–1999. If you know the true century, use the 7-digit YYYYDDD form to remove any ambiguity.
Can a day of year be 366?
Only in a leap year. Day 366 is December 31 of a leap year such as 2024 or 2028. In common years the maximum is 365, and the converter warns if a value is out of range.
How do I convert a Julian date to a date in Excel?
For a 7-digit YYYYDDD number in A1, use =DATE(INT(A1/1000),1,MOD(A1,1000)) and format the cell as a date; DATE rolls a day past January 31 into the right month. For a 5-digit YYDDD code from the 2000s, use =DATE(2000+INT(A1/1000),1,MOD(A1,1000)).