Putting an expiration date on food is three small jobs. First, work out the date for each batch: the day it was made plus that product's shelf life in days. Second, decide where it goes on the package, in a place a shopper and a shop's staff can find without turning the pack over twice. Third, print it: with a hand stamp, a label printer, a handheld inkjet coder or a printer on the packing line, depending on the package and how many you make. Then check the first pack of every run. Federal law doesn't require a date on most packaged food, but stores do ask for one. Below are the three jobs for a made-up maker with four products, and a planner.
The short version
- Date to print = day made + shelf life in days. Work it out once for each batch.
- "Best if used by" is the phrase FDA supports for a quality date.
- Write the month as letters: NOV 30 2026, not 11/30/26.
- Put the date where it can be read on the shelf, with the lot beside it.
- Stamp, label, handheld inkjet or line printer: pick by package and volume.
- Check the first pack of each run against the sheet.
- TaroStack gives each batch's lot its date from the item's shelf life. More below.
Do you have to?
FDA says it plainly: "Except for infant formula, manufacturers are not required by Federal law or regulation to place quality-based date labels on packaged food." Infant formula carries a "Use by" date under 21 CFR 107.20. For everything else the date is the maker's choice, and FDA supports "Best if used by" as the standard phrase for the date a product is at its best.
Your state may have its own rule for some foods, and a store buyer will usually want a date whatever the law says: ask both. The phrases and formats are covered in best by date format, and one state's law in sell by date law.
Job one: the date for each batch
Each product has one shelf life, in days, from your own tests.
| Product | Shelf life | Counted from | How this maker set it |
|---|---|---|---|
| Fresh salsa, 16 oz tub | 14 days | Day made | Tested to day 21, a week taken off |
| Hot sauce, 5 oz bottle | 540 days | Day bottled | Bottles kept 18 months |
| Granola, 12 oz bag | 180 days | Day baked | Stale at month 8, so 6 months |
| Banana bread, loaf | 5 days | Day baked | Mold on day 8 |
These numbers are the example's own. How to set yours is in shelf life testing.
Then each batch gets its date by adding.
| Made on | Product | Lot | Shelf life | Printed as |
|---|---|---|---|---|
| Nov 16 | Fresh salsa | S-1116 | 14 | Use by NOV 30 2026 |
| Nov 16 | Hot sauce | H-1116 | 540 | Best if used by MAY 9 2028 |
| Nov 17 | Granola | G-1117 | 180 | Best if used by MAY 16 2027 |
| Nov 17 | Banana bread | B-1117 | 5 | Best if used by NOV 22 2026 |
This maker prints "Use by" on the salsa because it's refrigerated and they don't want it eaten after that day. The other three are quality dates. Letters for the month matter: 11/12/26 is November 12 to one shopper and December 11 to another.
Job two: where it goes
| Package | A good place | Why |
|---|---|---|
| Glass jar | The lid, or the label's lower edge | The lid is flat and faces up in a case |
| Plastic bottle | The back label's lower edge, or the shoulder | Curved plastic smears a stamp: print the label |
| Tub with a film or snap lid | A lid label | The side is hidden in a cold case |
| Flexible bag | The back, above the bottom seal | Ink on a seal or a crease won't read |
| Paper bag or carton | Any flat panel | Paper takes a stamp well |
| The shipping case | One end panel, with the lot | Stores rotate by the case |
Three rules cover most packages. Put the date on a flat part. Put the words beside it, because a bare date could mean packed or expires. And put the lot code next to it: the date says when to stop selling, the lot says which batch it was. Making a lot code is in how to create lot numbers.
Job three: printing it
| Way | Works on | When it fits |
|---|---|---|
| Hand date stamp | Paper labels, paper bags, cartons | A few dozen packs a day. Set the bands each morning |
| Label printer | A sticker you apply | Up to a few hundred a day. The date comes from a file, so it's typed once |
| Handheld inkjet coder | Cartons, kraft, some plastic and glass | Bags and bottles with no room for a sticker. Needs the right ink |
| Printer on the packing line | Film and labels as they run | Thousands a day |
Plastic bottles and glossy bags are where people get stuck. Ordinary stamp ink beads up and wipes off. Either print the date onto the label before it goes on the bottle, or use a coder with ink made for plastic, and test a printed pack in the fridge for a week before trusting it. The machines are compared in lot code printer.
Check the first pack
Before the rest of the run is printed, hold the first pack against the sheet. Is it today's lot? Is the date the one the sheet worked out? Is the year right? The first week of January is when last year's year gets printed. Is it readable, dry, and on the flat? Then initial the row.
Mistakes cost more than the ink. A date a day too long is food sold past its life. A date nobody can find is a case sent back, which is how the granola came home.
Get the planner
Download the date code planner. Two sheets and a read-me: date codes, where you type the day made and the sheet works out the date and the words to print, and shelf lives, with how each was set. It's an ordinary Excel file with no macros, and it works in Google Sheets, LibreOffice and Numbers.
Where this stops working
The sheet knows the date you printed. It doesn't know where those packs are now. Three weeks later the question is which shop has salsa that's two days from its date, and how many granola bags from May's lots are still in the back room. Those answers are in delivery notes and on shelves, and a planner has neither.
How TaroStack does it
TaroStack gives every batch its date from the shelf life you set, and sends the oldest out first.
Dates from the shelf life. Each item carries its shelf life in days, and each batch's lot gets its production date and the date that follows from it.
Lot labels print with the code. Where the item has a 14-digit GTIN, the label's barcode carries the use-by date and the lot as well.
First-expired-first-out. Orders take the oldest lots first by default, and a grocer can be set to take only stock with enough days left.
An alert before a date arrives, in the app and by email, and a forecast of what will expire unsold and what it costs.
| The job | Planner | In TaroStack |
|---|---|---|
| The date on a batch | Day made + days, by formula | From the shelf life, on the lot |
| Which lot ships first | Read the dates | Oldest first by default |
| What's about to go out of date | Sort the sheet | An alert, and a forecast |
| Where a lot went | Delivery notes | One report, by lot |
TaroStack doesn't print on your packaging or decide your shelf life. Lots and expiry are on every plan, from $9.99 a month. The first 14 days are free, with no credit card. If you'd like a hand setting up, ask, and we'll do it with you.
