Expiration Date Code Converter
Reads a packaging date code in the format you choose and shows the calendar date it spells: 24035 as YYDDD is day 35 of 2024, which is 4 February 2024.
Runs in your browser. Nothing you enter is sent to a server. Sources: USDA FSIS, GS1 Updated
Read as YYDDD
4 February 2024
Sunday. Day 35 of 2024.
| The same date written as | Value |
|---|---|
| YYYY-MM-DD | 2024-02-04 |
| MM/DD/YYYY | 02/04/2024 |
| YYDDD | 24035 |
| YDDD | 4035 |
| MMDDYY | 020424 |
| DDMMYY | 040224 |
| YYMMDD | 240204 |
This is a reading of the digits in the format you selected, nothing more. Manufacturers use many date code formats, some of them their own, and this page reads seven. It cannot tell whether the date is a production date, a best-before date or something else, and it does not tell you whether a product is still good to use.
Date code formats the converter reads
Choose the format that matches your code. The page does not guess: the same digits can spell different dates in different formats, so the result is only as good as the format you pick.
| Format | What the digits are | Example | Reads as |
|---|---|---|---|
| YYDDD | Two-digit year, then the day of the year (001 to 366) | 24035 | 4 February 2024 |
| YDDD | Last digit of the year, then the day of the year | 4035 | 4 February of a year ending in 4 |
| Letter + YYDDD | One letter, which is ignored, then YYDDD | A24035 | 4 February 2024 |
| MMDDYY | Month, day, two-digit year | 020424 | 4 February 2024 |
| DDMMYY | Day, month, two-digit year | 040224 | 4 February 2024 |
| YYMMDD | Two-digit year, month, day | 240204 | 4 February 2024 |
| MM/DD/YYYY | A calendar date with the month first; /, - or . between the parts | 02/04/2024 | 4 February 2024 |
Spaces in the code are ignored. In the letter format the page skips the letter, because its meaning, such as a plant or a production line, is set by each manufacturer.
YYMMDD is the form the GS1 barcode standard uses for production, best-before and expiration dates. The GS1 pattern for these dates also accepts 00 as the day. The page then shows only the month and the year.
Show every format that fits lists each reading that gives a real date, side by side. It is a way to see how ambiguous a code is, not a way to find out which reading is right.
Julian date codes and leap years
A day-of-year code, often called a Julian date on packaging, counts the days from 1 January. Day 001 is 1 January and day 032 is 1 February. To read 24035 by hand: the year is 2024, and day 35 is 31 days of January plus 4, so 4 February.
From March onwards the count depends on whether the year is a leap year. A leap year has a 29 February and 366 days.
Years that divide by 4 are leap years, except century years, which must divide by 400: 2024 and 2000 are leap years, 2023 and 2100 are not. The page rejects day 366 for a year that has only 365 days.
| Date | Day of year | In a leap year |
|---|---|---|
| 1 January | 001 | 001 |
| 1 February | 032 | 032 |
| 1 March | 060 | 061 |
| 1 April | 091 | 092 |
| 1 May | 121 | 122 |
| 1 June | 152 | 153 |
| 1 July | 182 | 183 |
| 1 August | 213 | 214 |
| 1 September | 244 | 245 |
| 1 October | 274 | 275 |
| 1 November | 305 | 306 |
| 1 December | 335 | 336 |
| 31 December | 365 | 366 |
Two-digit and one-digit years
A two-digit year does not say which century it belongs to. The page reads it as 2000 to 2099 unless you switch Two-digit years mean to 1900 to 1999. Nothing is switched for you, so 31001 is 1 January 2031 until you say otherwise.
A one-digit year is worse: it repeats every ten years. For YDDD codes the page shows three candidates, which are the most recent year ending in that digit, the year ten before it and the year ten after it.
In 2026, 4035 gives 4 February 2014, 2024 and 2034. Only what you know about the product can tell you which is right.
Six digits can spell three dates
A six-digit code has no marker for the order of its parts. Take 020424:
- as MMDDYY it is 4 February 2024;
- as DDMMYY it is 2 April 2024;
- as YYMMDD it is 24 April 2002.
All three are real dates. If the package does not say which order is used, the code cannot be read with certainty.
YYDDD and YYMMDD codes have one useful property: in a list of codes of the same format from one century, a larger number is a later date. To put such a list in date order, sort them with the alphabetical order generator, which compares numbers by value.
What a date code can and cannot tell you
The US Food Safety and Inspection Service (FSIS) separates open dating, a calendar date applied by the manufacturer or retailer, from closed dating, a code of letters and numbers that the manufacturer applies to identify when the product was made.
FSIS says can codes exist to track products and to help manufacturers rotate stock and find products in a recall, that they refer to the date of canning, and that they are not meant for shoppers to read as Best if Used By dates. It also notes that, except for infant formula, US federal rules do not require product dating at all.
So a decoded date is not automatically an expiry date. It may be the day the product was made or packed.
How long a product keeps after that depends on the product and how it has been stored, and this page makes no statement about that. For a question about a specific product, contact the manufacturer.
To write a date for an engraving or a title page instead, the Roman numeral converter turns any date into Roman numerals. Other small converters, for colors, card prefixes and files, are under everyday tools.
Expiration Date Code Converter: FAQ
What is a Julian date code on packaging?
Is the date in the code the expiry date?
My code has a one-digit year. Which decade is it?
Why does day 060 give two different dates?
Why does my code not fit any format?
Sources
- USDA Food Safety and Inspection Service: Food Product Dating (open and closed dating, can codes) (checked October 12, 2026)
- GS1 Application Identifiers: (11) production date, (15) best before date and (17) expiration date, all in YYMMDD form (checked October 12, 2026)