In short
- A date code check confirms every pack carries the right use by or best before date and a readable batch code.
- Most mistakes come from changeovers, shift handovers, the wrong packaging and poor print quality.
- Checking a pack every 15 or 30 minutes leaves most packs unchecked. A camera after the coder can check every one.
What is date coding?
Date coding is printing a date mark and a batch or lot code onto packaging during production. The date coding machine, or coder, is usually an inkjet, thermal transfer or laser printer fitted to the filler, flow wrapper or labeller. The date tells shoppers how long the product is good for. The batch code tells you, your customers and the regulator exactly which run a pack came from.
A date code check is the step that confirms both are correct and readable before the product leaves your site. It sounds simple. In practice, it is one of the easiest places for a good production run to go wrong, and one of the hardest to catch by eye.
What the Food Standards Code requires
In Australia, date marking is covered by Standard 1.2.5 of the Australia New Zealand Food Standards Code, and lot identification by Standard 1.2.2. In plain terms:
- Use by dates go on food that must be eaten by a certain date for health or safety reasons. It must not be sold after that date.
- Best before dates go on most other packaged food. It can still be sold after that date if it is fit to eat and not damaged.
- Bread with a shelf life of less than seven days may show a "baked on" or "baked for" date instead.
- Food with a shelf life of two years or more generally does not need a best before date.
- The format matters. For a shelf life of three months or less, the date must show at least the day and month. For longer shelf lives, at least the month and year.
- Packaged food needs lot identification so a batch can be traced and recalled.
Food Standards Australia New Zealand (FSANZ) publishes guidance on date marking, and your state or territory food authority can help with specific products.
Why a wrong date matters
A missing, wrong or unreadable date mark can lead to a product withdrawal or a food recall. Labelling errors and undeclared allergens appear regularly on the FSANZ list of food recalls. Food manufacturers and wholesalers are also expected to have a written recall system under Standard 3.2.2.
The cost is rarely just the stock. It is the line time, the rework, the freight, the conversation with your customer and the trust that takes much longer to rebuild. Very often it all traces back to one small number printed wrongly on one shift.
Why date codes go wrong on real lines
The same causes come up again and again on food and drink lines:
- Changeovers. The coder still holds the last product's date or shelf life after a product change.
- Midnight and shift changes. The date rolls over, or a manual entry is missed at handover.
- The wrong label or carton. The right date printed on the wrong pack, which can also mean the wrong allergen information.
- Print quality. Low ink, a blocked printhead, condensation on cold packs or creased film can leave a code smudged, faint or half missing.
- Position drift. The code slides off the clear panel, onto a seam or under a flap.
- Speed. On a fast line, a person checking by eye only sees a small share of packs.
How most plants check codes today
The usual approach is a manual check. An operator confirms the first pack after start up or a changeover, then signs a check sheet every 15 or 30 minutes. Some lines also have a sensor that confirms a code has been printed.
Both help. Neither confirms that every single pack carries the right code for that run, printed clearly enough to read. On a fast line, a lot of product can pass between two signatures on a check sheet.
What a good date code check looks like
Whatever tools you use, a strong date code check does five things:
- Checks every pack, not a sample.
- Reads the code, not just whether ink is there, and compares it with the date and batch code expected for this product and this run.
- Judges print quality, because a code that is present but unreadable is still a fail.
- Acts straight away, by alerting someone or pushing the pack off the line before a pallet of bad stock builds up.
- Keeps a record of every check, so you can show an auditor or customer what happened on any shift.
How camera based date code checks work
A camera is mounted just after the coder. For every pack, the AI system:
- Reads the printed date and batch code, using text recognition trained on images of your own packaging.
- Compares it with the correct code for the product currently running, set at changeover.
- Checks print quality and position, flagging smudged, faint, partial or misplaced codes.
- Alerts the operator or rejects the pack the moment something is wrong.
- Logs every result with an image, giving you proof for audits and a clear picture of when and why problems happen.
This kind of automated label inspection can also check that the right label is on the right product. Because it learns from your own packs, the same approach can handle different films, cartons, colours and lighting. Once it works on one line, it can be rolled out to other lines and sites.
Partner project
At a sports medicine maker, an AI camera check on the packing line made packaging checks 90% more efficient and cut packing errors by 30%.
Project delivered overseas by our technology partner. Results as reported by them for their customer.
Questions to ask before you start
- Which lines and products carry the most risk, such as use by products or allergen variants?
- Where is the best place to mount a camera after the coder?
- Should a fail stop the line, reject the pack or alert someone?
- How is the correct code set at changeover today, and who sets it?
- How should results reach your quality records?
This guide is general information to help you think about your site. It is not legal advice. Rules change and every site is different, so check the current requirements with the relevant regulator or a qualified adviser.
Common questions
What is date coding?
Date coding is printing a date mark, such as a use by or best before date, and a batch or lot code onto packaging during production. It is usually done by an inkjet, thermal transfer or laser coder fitted to the line.
What is the difference between a use by and a best before date?
A use by date is about safety. Food must not be sold after its use by date. A best before date is about quality. Food can still be sold after its best before date if it is fit to eat and not damaged.
Is a missing batch code a problem if the date is right?
Yes. Packaged food generally needs lot identification so a batch can be traced and recalled if something goes wrong.
Do we need to replace our coder to check codes automatically?
No. A camera check sits after your existing coder and checks what it prints.
Can a camera keep up with a fast line?
Cameras check every pack at production speed. The exact setup depends on your line speed, packaging and coder, and is worked out after we see your site.
Check every date code, not just a sample
Vantory helps Australian food and drink makers check the date and batch code on every pack, using AI vision around the coders you already have. Each project is built around your line and what you want to fix.
See how quality checks workOr tell us about your line and we will take a look.