A GS1 expiry date ending in 00 means the end of that month
Decode the zero-day convention in a confirmed GS1 food-pack date without repairing it as an OCR mistake or changing its date type.
In a confirmed GS1 date field, a final day of 00 can be intentional. It represents the last day of the stated month. Do not replace it with 01, reject the whole date, or silently invent a missing printed day.
Identify the field before interpreting six digits
The GS1 retail barcode guideline lists Application Identifier 17 as an expiration date in YYMMDD format. Identifier 15 is a best-before date. These identifiers tell you the kind of date; the following six digits supply its value. An ordinary six-digit batch code is not automatically either field.
Start with the identifier visible in the human-readable barcode text or supplied by a reader that identifies the GS1 fields. Preserve it beside the digits. If you have only a cropped number, first resolve the scheme rather than applying this convention to every date printed on a food package.
Turn the month-only date into a calendar result
The GS1 Digital Link standard explicitly describes converting a day of 00 to the actual last day, taking the month and year into account.
For a hypothetical food-pack example, assume the product context has independently established that the two-digit year 28 means 2028. The field (17)280200 separates into year 28, month 02 and day 00. February 2028 ends on the 29th, so its decoded expiration date is 29 February 2028. With a confirmed year of 2027, (17)270200 instead resolves to 28 February 2027.
Keep both forms: raw field (17)280200 and decoded date 2028-02-29. The zeros belong in the evidence record even after you display an ordinary calendar date.
Keep the date meaning attached
Changing the identifier to 15 would change this example to a best-before field. The month-end calculation alone cannot decide which date concept the manufacturer supplied. Nor does decoding a date assess the condition of the food or resolve a conflict with other package wording.
If a saved result shows the first of February, compare its raw field before reporting the discrepancy: the problem may be interpretation of 00 rather than a different package date. For an ingredient-photo task alongside this check, consult IngrediAI's current product information and check its supported inputs before relying on a result.