Date coding is the automated inline packaging process of marking each product, immediate container, or outer carton with a variable manufacture, expiration, use-by, best-before, or sell-by date. Production lines apply these marks with inkjet, thermal-transfer, or laser coders matched to substrate porosity, curvature, and durability so codes remain legible from filling through retail distribution.
Matching the coding method to the package material is where most line issues start. A porous folding carton, a slick flexible polypropylene pouch, an extruded cable or rigid bottle, and an ink-coated carton respond differently to liquid ink, melted ribbon resin, or focused laser light. Choosing the wrong process causes smeared characters, rubbed-off dates, or weak contrast that disrupts traceability and triggers retail rejections.
What is a date code on a product and what does it mean?
A date code is a variable date applied during packaging that communicates either a legal safety cutoff, an anticipated shelf-life boundary, a retail stock-rotation deadline, or the period in which an item was manufactured. Depending on the product category and jurisdiction, that mark serves either a statutory compliance role or a voluntary quality-advisory role.
In regulated categories, federal rules tie the printed date directly to laboratory stability evidence and container visibility:
- Finished drug products: Under 21 CFR 211.137, a drug product must bear an expiration date determined by stability testing under 21 CFR 211.166 so it meets standards of identity, strength, quality, and purity at the time of use. Expiration dates must relate to the storage conditions stated on the labeling, and drugs reconstituted at dispensing must carry expiration information for both the unreconstituted and reconstituted states. Human OTC drugs whose labeling bears no dosage limitations and that remain stable for at least 3 years have an enforcement exemption.
- Drug container visibility: Under 21 CFR 201.17, required drug expiration dates under 21 CFR 211.137 must appear on both the immediate container and the outer package unless the mark is easily legible through the outer package. Single-dose drug containers packed in individual cartons may carry the expiration date on the individual carton instead of the immediate product container.
- Infant formula: Under 21 CFR 107.20, U.S. infant formula labeling requires a Use by date filled in with the month and year selected from stability tests showing that the formula retains not less than each labeled nutrient quantity and remains acceptable in quality through that date.
- Medical devices: Under 21 CFR 830.3, the FDA defines a device expiration date as the date by which the label states the device must or should be used. Whenever a medical device label displays a printed expiration date, manufacture date, or other user-facing date, 21 CFR 801.18 requires a hyphenated four-digit year, two-digit month, and two-digit day format such as 2014-01-02.
On food and consumer goods, pre-printed primary labels frequently direct buyers to a separately coded surface such as the carton bottom or container lid because the variable date changes continuously across production shifts. For format conventions, human-readable font rules, and barcode date encoding, see our expiration date code format and legibility guide.
What types of date coding should packagers know?
Packagers encounter distinct date-code categories that separate safety cutoffs from peak-quality guidance, retail shelf management, post-opening windows, and manufacturing records. Selecting the correct wording matters because open-dated quality phrases do not legally substitute for a mandatory safety-driven expiration or use-by date.
| Date code type | Primary meaning on packaging | Regulatory or industry anchor | Typical product applications |
|---|---|---|---|
| Expiration date (EXP or ED) | Legal cutoff or anticipated shelf life after which an item should no longer be used | 21 CFR 211.137, 21 CFR 201.17, 21 CFR 830.3 | Prescription drugs, medical devices, regulated perishable goods |
| Use by | Last date for safe consumption or labeled nutrient retention | 21 CFR 107.20, GMA and FMI 2017 guidelines, FDA 2019 | Infant formula, milk, fresh meat, high-risk chilled foods |
| Best before or Best if used by | Advisory indicator of peak flavor, texture, or quality rather than safety | Regulation (EU) 1169/2011, GMA and FMI 2017 guidelines, FDA 2019 | Frozen, dried, tinned, and ambient packaged foods |
| Sell by | Retail stock-rotation cue moving earliest-dated inventory to the front of shelves | Retail inventory practice documented in expiration-date guidance | Dairy, bakery, and short-rotation grocery stock |
| Open dating (umbrella category) | Human-readable calendar dates (encompassing Use by, Best if used by, and Sell by), contrasted with closed production lot codes | USDA FSIS / retail open-dating conventions | Consumer-facing retail food cartons, pouches, and trays |
| Period after opening (such as 12M) | Usable duration once a sealed container is first opened | Cosmetic and toiletry open-jar labeling conventions | Skincare, toiletries, and multi-use personal care packs |
| Manufacture date or DLC date code | Week or specific day of manufacture, distinct from an expiration date | 21 CFR 830.3 production identifier, lot-coding conventions | Shelf-stable consumer goods, industrial packs, medical devices |
Expiration dates are commonly abbreviated EXP or ED and separate legal safety cutoffs from advisory peak-quality phrases. Use by wording applies to perishable foods such as milk and meat that may become unsafe after the stated date, whereas Best before dates serve as advisory quality indicators on frozen, dried, or tinned foods and Best if used by signals peak quality or taste. In the United States, 2017 voluntary guidelines from GMA and FMI recommended standardizing food labels around only Best if used by or Use by, an approach reinforced by the FDA in 2019, while European food quality dates fall under Regulation (EU) 1169/2011.
How does date coding work on a packaging line?
Inline date coding synchronizes a variable printer or laser marker with moving cartons, bottles, cans, or continuous film webs so every unit receives the current date string automatically. A typical station pairs package detection and speed tracking with a non-contact or contact marking head, followed by placement and legibility inspection before case packing.
Non-contact ink ejection and beam marking
Non-contact date coders form characters across an air gap so irregular shapes, curved cans, and fast-moving bottles can be marked without mechanical pressure. In continuous inkjet printing, a high-pressure pump pushes liquid ink through a microscopic nozzle of roughly 0.003 inch (76 μm) diameter to break the stream into 64,000 to 165,000 droplets per second. Selected droplets receive an electrostatic charge and deflect onto the passing package at roughly 20 m/s, giving CIJ both long throw distance and high-speed capability while uncharged droplets recycle through a gutter. Because solvent evaporates during continuous recycling, CIJ systems monitor ink viscosity and automatically add solvent make-up to maintain print stability.
Drop-on-demand inkjets fire droplets only when a character pixel requires ink. Thermal inkjet cartridges use photolithographic micro-chambers with thin-film heating elements that rapidly vaporize ink to create a propelling bubble, whereas piezoelectric DOD heads deform a PZT ceramic actuator without heat, avoiding thermal kogation and accepting broader ink chemistries. Laser marking eliminates liquid inks and contacting wear parts altogether by steering a focused beam across the package surface to create variable dates, lot and batch codes, 2D codes, and alphanumeric text through color change, charring, foaming, melting, or shallow surface alteration.
Contact ribbon transfer and container visibility checks
Where a flexible film web or flat label can be backed cleanly by a platen or roller, thermal-transfer overprinting presses a heated printhead against a coated ribbon so the melted ink bonds directly onto the packaging surface. After mark application, quality control confirms that the printed string is legible, correctly positioned inside the designated coding window, and visible across packaging layers. For regulated pharmaceutical runs under 21 CFR 201.17, that check covers both the immediate container and the outer package unless the code reads clearly through the outer wrap.
For broader station selection across line layouts, start at the packaging coding machines guide. Once continuous inkjet is on your line, our continuous inkjet viscosity control and maintenance guide covers solvent make-up stability and nozzle upkeep.
How do date coding machines and printers differ?
Date coding machines differ primarily in whether they touch the substrate, what consumables they require, what print resolution or wavelength physics they use, and how they fail when mismatched to a package surface. Comparing the main printer families side by side clarifies why no single date coder fits every packaging material.
| Printer type | Contact mode and marking physics | Core operating parameters | Consumables and substrate compatibility | Primary failure mode to guard |
|---|---|---|---|---|
| Continuous inkjet (CIJ) | Non-contact continuous stream with electrostatic drop deflection | ~0.003 in. (76 μm) nozzle, 64,000 to 165,000 droplets/s, roughly 20 m/s drop velocity | Volatile ketone and alcohol inks plus make-up solvent; curved bottles, cans, plastics, cartons | Viscosity drift or wrong solvent ink causing smear or poor adhesion |
| Thermal inkjet (TIJ) | Non-contact drop-on-demand using thin-film chamber heaters | Vapor bubble ejection from photolithographic cartridge nozzles | Sealed disposable ink cartridges requiring volatile ink carriers; flat cartons, sleeves, paper labels | Thermal kogation or excess throw distance degrading character sharpness |
| Piezoelectric DOD | Non-contact drop-on-demand using PZT ceramic deformation | Heat-free mechanical drop ejection with wider ink compatibility | Broader non-volatile ink chemistries; porous and semi-porous outer cases and cartons | Higher printhead hardware cost and package-guide wobble blurring print |
| Thermal transfer (TTO) | Contact heated printhead melting ribbon coating onto backed film or label | 203 dpi, 300 dpi, or 600 dpi addressable printhead dots | Wax, wax-resin, or full resin ribbons; flexible polypropylene, polyester films, foils, labels | Pure wax ribbon rubbing or smearing off synthetic film under abrasion |
| Laser marking | Non-contact focused beam causing chemical color change, charring, foaming, melting, or ablation | Shallower than 100 μm engraving; CO₂ at 10,600 nm, fiber or Nd:YVO₄ and Nd:YAG near 1,000 to 1,064 nm, plus 532 nm and 355 nm harmonics | No inks or contacting wear bits; plastics, coated cartons, glass, and metals matched to absorption spectrum | Wavelength mismatch with plastic absorption causing weak contrast or thermal damage |
Inkjet date coders: CIJ vs TIJ vs Piezo DOD
CIJ remains the workhorse for curved or irregular containers at long throw distances because its continuous jet stays active and tolerates volatile ketone and alcohol solvents that bite into non-porous surfaces and dry rapidly. Thermal inkjet trades throw distance and solvent range for compact cartridge cleanliness, while piezoelectric DOD removes the heater entirely so ink residue buildup from kogation does not occur and broader ink formulations can run. To compare cartridge inks and standoff limits in detail, review our thermal inkjet cartridge inks and throw-distance guide alongside our inkjet substrate adhesion trial guide.
Contact thermal transfer and inkless laser coders
Industrial thermal-transfer printheads offer 203 dpi, 300 dpi, and 600 dpi options with independently heated dots. Pure wax ribbons remain sensitive to scraping, rubbing, and smearing, whereas wax-resin blends and full resin ribbons provide stronger abrasion resistance on polypropylene and polyester films; see our thermal transfer overprinter guide for web-integration checks.
By contrast, inline laser marking modifies the surface far shallower than deeper laser engraving (100 μm and beyond). Because many metals reflect 10,600 nm CO₂ energy and every polymer has a distinct light-absorption spectrum, matching CO₂ (10,600 nm) against fiber, Nd:YVO₄, or Nd:YAG (~1,000 to 1,064 nm) and shorter 532 nm or 355 nm harmonics governs whether a laser produces clean chemical color change or unwanted melting. Explore polymer wavelength selection in our laser marking on plastic packaging guide.
What is the difference between a date code and a lot number?
A date code states when a product was made or when its shelf life ends, whereas a lot number identifies a production quantity made under uniform conditions so factories can trace ingredients, labor, and equipment records. Even when a lot number embeds a timestamp, its primary job is grouping production history rather than setting an expiration boundary.
Regulatory definitions keep these identifiers cleanly separated. Under 21 CFR 830.3, a lot or batch means one or more finished units of a single type, model, class, size, composition, or software version manufactured under essentially the same conditions with uniform characteristics. The same regulation defines a UDI production identifier with distinct conditional variable fields for the lot or batch, the serial number, the expiration date, and the date of manufacture.
Lot numbers allow manufacturers to trace constituent parts, ingredients, labor, and equipment records to run quality checks, calculate expiration dates, and issue targeted recalls. Some factories build date and time stamps into a lot string, or print a combined date and lot code (DLC). Inside a DLC, the date portion records the week or specific day of manufacture rather than an expiration date, so packagers still need a separate shelf-life or expiration field whenever buyers or regulators require one. For content rules and rub-resistance checks on batch strings, see our lot code content, placement, and durability guide.
How does a date code differ from a serial number?
A date code applies identically across every package sharing the same manufacture or expiration date, whereas a serial number uniquely identifies one individual unit so no two items carry the same string. Date codes govern shelf life and inventory rotation, lot numbers isolate shared manufacturing runs, and serial numbers trace single items for anti-counterfeiting, theft deterrence, and surgical defect isolation.
| Identifier | Scope of assignment | Primary operational job | UDI production identifier field (21 CFR 830.3) |
|---|---|---|---|
| Date code (expiration or manufacture date) | Shared by all packages sharing the same production date or shelf-life cutoff | Communicates safety cutoff, peak-quality window, or manufacture timing | Separate fields for expiration date and date of manufacture |
| Lot or batch number | Shared by all units produced under uniform conditions in one manufacturing run | Links ingredients, labor, and equipment records for quality checks and targeted recalls | Lot or batch within which a device was manufactured |
| Serial number (SN) | Unique to one individual unit, typically assigned incrementally or sequentially | Distinguishes identical units to deter counterfeiting or theft and isolate specific defective units | Serial number of a specific device |
A serial number (SN) is usually assigned incrementally or sequentially to distinguish otherwise identical individual units. In quality control, once a defect surfaces inside a production batch, serial numbers pinpoint exactly which specific units are affected rather than recalling an entire date range. On packaging lines printing variable dates alongside serialized codes or machine-readable barcodes, plan automated character and symbol verification through our code inspection overview and OCR, vision, and barcode grading guide.
Date coding line-readiness and substrate matching checklist
Before releasing a date-coding specification or approving a new packaging substrate, verify each control point with engineering and quality assurance:
- Confirm legal versus advisory date wording: Lock whether the SKU requires a stability-backed expiration date (such as drugs under 21 CFR 211.137), a month-and-year Use by date (such as U.S. infant formula under 21 CFR 107.20), a hyphenated YYYY-MM-DD device date under 21 CFR 801.18, or a voluntary Best if used by food quality mark.
- Verify immediate and outer container visibility: Confirm whether the code must be printed on both the immediate container and outer carton (as required for regulated drugs under 21 CFR 201.17 unless legible through the outer package) or whether a pre-printed label points to a dedicated coded panel such as a bottom or lid.
- Match printer physics to substrate geometry: Shortlist CIJ for curved containers and long throw distances, TIJ or piezoelectric DOD for flat porous or semi-porous cartons and sleeves, TTO for backed flexible polypropylene or polyester webs, and wavelength-matched CO2, fiber, Nd:YVO4, Nd:YAG, or harmonic lasers for inkless surface marking.
- Qualify consumable and abrasion resistance: For CIJ, pair volatile ketone or alcohol ink with active viscosity and solvent make-up control; for TTO on synthetic film, avoid abrasion-sensitive pure wax ribbons and qualify wax-resin or full resin grades; for laser marking, test plastic light-absorption response before committing to line speed.
- Separate date, lot, and serial data fields: Keep expiration date, manufacture date, lot or batch number, and unit serial number explicitly separated in label templates and print recipes so a manufacture date inside a DLC is never mistaken for an expiration date.
Frequently asked questions
What does a date code on a product mean?
A date code tells regulators, retailers, or buyers either a safety or regulatory cutoff (such as a drug expiration date or infant formula Use by date), an advisory peak-quality window (Best before or Best if used by), a retail stock-rotation date (Sell by), or the manufacture date inside a date and lot code.
Are date codes legally required on all packaged products?
No. In the United States, federal rules mandate stability-backed expiration dates on finished drug products under 21 CFR 211.137 (with a 3-year stability enforcement exemption for certain OTC drugs without dosage limitations) and month-and-year Use by dates on infant formula under 21 CFR 107.20, whereas most food quality dates rely on voluntary industry guidelines such as the 2017 GMA and FMI framework reinforced by the FDA in 2019.
Which date coding machine works best for flexible plastic film versus curved bottles?
Thermal transfer overprinters (TTO) running wax-resin or full resin ribbons at 203 dpi, 300 dpi, or 600 dpi suit backed flexible polypropylene and polyester films where abrasion resistance matters. Continuous inkjet (CIJ) suits curved bottles and cans because droplets eject at roughly 20 m/s across a longer non-contact throw distance using fast-drying ketone or alcohol solvents.
Is a lot number the same as an expiration date?
No. A lot number groups units manufactured under essentially the same conditions so a manufacturer can trace ingredients, labor, and equipment records for quality control and targeted recalls. Although some lot strings or DLC formats include a manufacture date, a lot number does not replace an expiration or use-by date.
When should a packaging line add a serial number alongside a date code?
Add a serial number whenever you need to distinguish individual units within the same batch or date run—for example, to satisfy unique device identification fields under 21 CFR 830.3, deter theft and counterfeiting, or isolate specific defective units inside an affected production lot.
Sources
- 21 CFR 211.137 — Expiration dating, Electronic Code of Federal Regulations (U.S. FDA drug expiration dating, stability testing under 21 CFR 211.166, reconstitution, and 3-year OTC enforcement exemption).
- 21 CFR 201.17 — Drugs; location of expiration date, Electronic Code of Federal Regulations (immediate container, outer package legibility, and single-dose carton rules).
- 21 CFR 107.20 — Directions for use, Electronic Code of Federal Regulations (U.S. infant formula Use by month-and-year dating and nutrient retention).
- 21 CFR 801.18 — Format of dates provided on a medical device label, Electronic Code of Federal Regulations (hyphenated YYYY-MM-DD device date formatting such as 2014-01-02).
- 21 CFR 830.3 — Definitions, Electronic Code of Federal Regulations (FDA UDI definitions separating lot or batch, serial number, expiration date, and date of manufacture).
- Expiration date, Wikipedia (EXP and ED abbreviations, Use by, Best before, Best if used by, Sell by, open dating, 12M period after opening, GMA and FMI 2017 and FDA 2019 guidance, and EU 1169/2011).
- Lot number, Wikipedia (batch traceability, expiration calculation, targeted recalls, and DLC manufacture-date meaning).
- Serial number, Wikipedia (unique sequential unit identification, anti-counterfeiting, and batch defect isolation).
- Inkjet printing, Wikipedia (CIJ 0.003 inch nozzle, 64,000 to 165,000 droplets/s, roughly 20 m/s velocity, ketone and alcohol inks, viscosity make-up, TIJ bubble ejection, and PZT piezoelectric DOD).
- Thermal-transfer printing, Wikipedia (melted ribbon transfer, 203 dpi, 300 dpi, and 600 dpi printheads, and wax versus wax-resin and full resin durability on polypropylene and polyester).
- Laser engraving, Wikipedia (inkless non-contact laser marking versus 100 micrometers engraving, plastic absorption spectra, and CO2 10,600 nm versus fiber, Nd:YVO4, and Nd:YAG near 1,000 to 1,064 nm plus 532 nm and 355 nm wavelengths).



