To read a Julian date code on food, look in the code stamped on the can or package for a three-digit number from 001 to 365 (366 in a leap year). That number is the day of the year: 001 is January 1, 032 is February 1 and 365 is December 31. One or two digits next to it usually give the year, so a can code ending in 24820 can mean day 248 of 2020. On most cans and dry goods, that date is when the food was packed, not when it expires.
This guide walks through the decoding step by step, gives a chart of the day number for the first of every month, and works through real code keys that manufacturers publish. It also covers the other code styles you may find, what a pack date can and can't tell you, and how to get a best-by date when the package doesn't print one.
What a Julian date code is
A Julian date code counts days from January 1 instead of writing a month and day. UConn Extension describes codes that use Julian numbers, where January 1 is 001 and December 31 is 365. Nebraska Extension explains the same three-digit number on egg cartons, where it is the day the eggs were packed. The name is borrowed loosely: astronomers use Julian day for a different, much longer count, but on food packages it simply means the day of the year.
These numbers usually sit inside a longer code. The USDA Food Safety and Inspection Service (FSIS) explains that cans must carry a packing code so the product can be tracked in interstate commerce. The code lets manufacturers rotate their stock and find their products if there is a recall. FSIS describes these codes as letters and numbers that may refer to the date or time of manufacture, and says they are not meant to be read as use-by dates.
There is no single standard. FSIS notes that no book or website translates every company's codes into dates, and suggests contacting the manufacturer when you can't work one out.
How to decode the code step by step
Decoding comes down to finding two parts, the day and the year, and turning the day into a calendar date.

Start with where the code is printed. Alpineaire Foods says the code on its Gourmet Reserve cans is printed on the top or the bottom of the can. A long code often mixes a product number, the date and a lot number. Alpineaire's published example reads 99101 MOUNTAIN CHILI 03113-6226: 99101 is the product ID, 03113 is the date and 6226 is the lot number.
Next, split the date part. Look for three digits between 001 and 366, and for digits that make sense as a recent year. Both published keys in this guide put the year after the day (248 then 20, or 031 then 13), but the order differs by company, and some codes use only one digit for the year. A single year digit only tells you the year within a decade, so judge it by when you bought the item.
Day-of-year chart for every month
To turn a day number into a date, find the month whose first day is the closest number at or below your code, then count forward. The chart gives the day number of the 1st of each month in a common year and in a leap year.

The arithmetic is short: subtract the month's first-day number from your code and add 1. For code 300 in a common year, October 1 is day 274, so 300 − 274 + 1 = 27, which is October 27. For code 045, February 1 is day 32, so 45 − 32 + 1 = 14, which is February 14.
Leap years shift every date from March on by one day. In 2026, day 060 is March 1, but in 2028, a leap year, day 060 is February 29. If you want a reference point to check your counting, today, November 26, 2026, is day 330.
Worked examples from real code keys
Code keys that manufacturers publish show how the parts fit together.
- Neil Jones Food Company cans. The company says the last five digits of the sequence on its cans are the Julian code: the first three are the day and the last two are the year the product was canned. Its example, 24820, is day 248 of 2020, which the company reads as September 5, 2020. It says all of its products have an official shelf life of 36 months, so that can's best-by date is September 5, 2023. Note that 2020 was a leap year, and on a standard leap-year calendar day 248 falls on September 4. Companies may count slightly differently, so where the maker publishes its own reading, go with theirs.
- Alpineaire Gourmet Reserve cans. In 03113, 031 is January 31 and 13 is 2013. The company calls this the production date. Its pouches are different: they carry a readable Best By date instead of a code.
- Egg cartons. Nebraska Extension gives code 032 as eggs packed on February 1. It says refrigerated eggs can be kept four to five weeks beyond the pack date, and that the sell-by date will usually pass while they are stored.
- A made-up year-first code. If a maker printed 6045 with a single year digit in front, it would read as day 045 of 2026, or February 14, 2026.
Other date codes you may see
Not every code is a day-of-year count. UConn Extension notes that packers may write a month, day and year in a compressed form such as YYMMDD or MMDDYY, and that some cans include Sell-By or Best-By within the code. So 261126 would be November 26, 2026 written YYMMDD, while 112626 would be the same date written MMDDYY. If the first pair of a six-digit code is above 12, it can't be a month, which rules out MMDDYY.
Canada sets a fixed order for best before dates. Health Canada says that if the year is shown it comes first, then the month and then the day, and that the month is written with bilingual codes such as JA for January, FE for February and MR for March, through DE for December. A label reading 26 MR 15 is therefore March 15, 2026.
The hardest case is a date like 03/04, which can be March 4 or 3 April depending on the country. If the package doesn't say, the manufacturer's website or customer line is the reliable answer.
Why most codes are pack dates, not expiry dates
A Julian code on a can usually tells you when the food was made, not when it stops being at its best. That matches FSIS, which describes can codes as packing codes for tracking and recalls, and both manufacturers above, which call their code the date the food was canned or produced.
To get a best-by date from a pack date, you need the shelf life the maker uses. Neil Jones publishes it (36 months); many companies don't, and FSIS suggests contacting the manufacturer. FSIS also gives general storage guidance for best quality: 12 to 18 months for high-acid canned foods such as tomatoes and fruit, and two to five years for low-acid canned foods such as meat and vegetables.
FSIS says the calendar dates printed on cans are usually best-if-used-by dates for quality, and it advises discarding cans that are dented, rusted or swollen. A date, coded or not, is only part of the picture, so check the can and the food yourself. For what the different label words mean, see our guide to best before vs use by.
Saving the converted date in Eatnext
Once you have converted a code, write the date down somewhere you will see it. Eatnext, the food expiry app we make for Android, is one way to do that. A barcode never contains the expiry date: scanning it fills in the product's name from Open Food Facts, a free, open food database, when it knows the product, and the date comes from the pack or from you.

The camera can read a date printed on the pack and shows you what it read before saving, but a code like 24820 isn't a calendar date. So after converting it, type the date in or pick it on the calendar. Typing a date is always free; the camera reads dates 5 times a day on the free list.
Which date you enter is your choice: the maker's best-by date if it publishes a shelf life, or a date when you want to look at the item again, with the pack date and the original code in the note. Search finds an item by name or note, so you can find the code again later. Your list puts what's due first at the top, and one reminder a day, at the time you choose, tells you when something is coming up. The free list holds up to 50 items. For other ways to keep a pantry list, see how to keep track of food expiration dates.
Common questions
Is the Julian date on a can the expiration date?
Usually not. FSIS describes can codes as packing codes used to track products, rotate stock and handle recalls, not as use-by dates. The manufacturer code keys in this guide also call their codes canning or production dates.
How do I find the best-by date from a Julian code?
Add the shelf life the manufacturer uses to the pack date. Neil Jones Food Company, for example, gives 36 months, so a can packed on September 5, 2020 is best by September 5, 2023. If the company doesn't publish a shelf life, FSIS suggests contacting the manufacturer.
How long do canned goods last after the pack date?
For best quality, FSIS gives 12 to 18 months for high-acid canned foods such as tomatoes and fruit, and two to five years for low-acid foods such as meat and vegetables. These are quality guides, not guarantees, and FSIS advises discarding cans that are dented, rusted or swollen.
What does the three-digit number on an egg carton mean?
It is the pack date written as a day of the year, from 001 for January 1 to 365 for December 31. Nebraska Extension gives 032 as February 1 and says refrigerated eggs can be kept four to five weeks beyond the pack date.
How do leap years change a Julian date?
In a leap year February has 29 days, so every day number from 060 on lands one calendar day earlier than in a common year. Day 060 is February 29 in 2028 but March 1 in 2026, and a leap year can have a day 366.


