Skip to content
tools.best

Browse all tools

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 asValue
YYYY-MM-DD2024-02-04
MM/DD/YYYY02/04/2024
YYDDD24035
YDDD4035
MMDDYY020424
DDMMYY040224
YYMMDD240204

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.

FormatWhat the digits areExampleReads as
YYDDDTwo-digit year, then the day of the year (001 to 366)240354 February 2024
YDDDLast digit of the year, then the day of the year40354 February of a year ending in 4
Letter + YYDDDOne letter, which is ignored, then YYDDDA240354 February 2024
MMDDYYMonth, day, two-digit year0204244 February 2024
DDMMYYDay, month, two-digit year0402244 February 2024
YYMMDDTwo-digit year, month, day2402044 February 2024
MM/DD/YYYYA calendar date with the month first; /, - or . between the parts02/04/20244 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.

DateDay of yearIn a leap year
1 January001001
1 February032032
1 March060061
1 April091092
1 May121122
1 June152153
1 July182183
1 August213214
1 September244245
1 October274275
1 November305306
1 December335336
31 December365366

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.

The date code 020424 read three ways by the expiration date code converter: 4 February 2024 as MMDDYY, 2 April 2024 as DDMMYY and 24 April 2002 as YYMMDD. Below, the Julian code 24035 is year 2024, day 35, which is 4 February 2024.
Without a stated format a six-digit code is ambiguous; a day-of-year code with a two-digit year is not.

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?
On packaging, a Julian date is the day of the year: 001 is 1 January, and 31 December is 365, or 366 in a leap year. It follows a one-digit or two-digit year, so 24035 is day 35 of 2024, which is 4 February 2024. It is not the Julian day number used in astronomy, which counts days without restarting each year.
Is the date in the code the expiry date?
The code alone does not say. This page turns digits into a date and cannot tell what the date marks. For canned food in the United States, the Food Safety and Inspection Service says can codes refer to the date of canning and are not meant to be read as Best if Used By dates. If you need to know what a code means for a product, ask the manufacturer.
My code has a one-digit year. Which decade is it?
A single digit cannot tell you. The page shows three candidates: the most recent year ending in that digit, the one ten years earlier and the one ten years later. Use what you know about the product to choose.
Why does day 060 give two different dates?
Because of leap years. In a leap year day 60 is 29 February, and every later day of the year falls one calendar day earlier than in other years. 24060 is 29 February 2024, while 23060 is 1 March 2023.
Why does my code not fit any format?
Manufacturers are free to design their own codes. A code can include the time of production and other details as well as the date, in any order. This page reads only the seven formats in its list. For anything else, the manufacturer is the only reliable source.

Sources