Reference · Worked examples

Julian Date Examples: How to Read Every Format

Identify the kind of Julian date you have from its digits, read its parts, and avoid the mistakes that matter most: leap years, dropped zeros and two-digit years. Reading a code on a product? See Julian date codes on food and other products.

Identify the format by its digits

Looks likeExampleFormatReads as
3 digits202DDD: day of year onlyDay 202 of a year you must supply
4 digits6202YDDD: last digit of year + dayJuly 21, 2026 (or 2016)
5 digits26202YYDDD: two-digit year + dayJuly 21, 2026
6 digits126202CYYDDD: JD Edwards ERP dateJuly 21, 2026
7 digits2026202YYYYDDD: full year + dayJuly 21, 2026
7 digits + decimal2461242.5Astronomical Julian Date (JD)July 21, 2026, 00:00 UTC
5 digits + decimal61242.75Modified Julian Date (MJD)July 21, 2026, 18:00 UTC

In all the day-of-year formats the last three digits are the day of the year, from 001 to 365 (366 in a leap year). Everything in front of them is some form of the year.

How to read a Julian date in three steps

  1. Split off the last three digits. In 26035 that leaves 26 and 035.
  2. Work out the year. 26 is 2026 (see the century rules below for older codes).
  3. Count the days. Day 35 is 31 days of January plus 4: February 4, 2026. The day-of-year chart lists every day.

1. A full YYYYDDD code

A seven-digit code has a four-digit year followed by a three-digit day of that year. 2026202 separates into 2026 + 202, and day 202 of 2026 is July 21, 2026. This is the clearest option for production records, exports and databases because it has no century ambiguity. ISO 8601 writes the same date as the ordinal date 2026-202.

CodeSplitCalendar date
20260012026 + 001January 1, 2026
20260602026 + 060March 1, 2026
20262022026 + 202July 21, 2026
20263652026 + 365December 31, 2026
20243662024 + 366December 31, 2024 (leap year)

2. The YYDDD format

YYDDD shortens the year to two digits. It is the most common “Julian date” on mainframe reports, calibration and inspection stickers, lot codes and government forms.

CodeSplitCalendar date
2603526 + 035February 4, 2026
2620226 + 202July 21, 2026
2536525 + 365December 31, 2025
0500905 + 009January 9, 2005 (often shown as 5009)
9936599 + 365December 31, 1999

The century is not in the code, so software applies a cutoff year, and different systems use different cutoffs. The same code can therefore decode differently in two programs:

SystemRead as 2000sRead as 1900s
This site, Python %y, C strptime00–6869–99
MySQL, PostgreSQL to_date00–6970–99
SQL Server (default cutoff 2049)00–4950–99
Oracle RR format00–4950–99
SAS (default YEARCUTOFF=1940)00–3940–99
Excel and Windows, typing a date00–2930–99

A code like 45120 is April 30, 2045 to Python and SQL Server but April 30, 1945 to Excel and SAS. For recent labels this rarely matters; for archives it does.

3. A four-digit YDDD code

Military rations and supply documents use only the last digit of the year: 6202 is day 202 of a year ending in 6, so July 21, 2026 (or July 20, 2016, a leap year). The decade comes from context, usually the most recent year ending in that digit. See the MRE date code decoder.

4. A three-digit day-of-year code

On an egg carton, batch sticker or can, 202 usually means only “the 202nd day of the year.” It is typically a pack or production date, not an expiry date, and it does not contain the year. Look for a separate sell-by, best-by or lot code before drawing conclusions about freshness. The egg carton decoder picks the most recent matching date.

5. A six-digit JD Edwards code

Oracle JD Edwards ERP stores dates as CYYDDD, where the first digit counts centuries since 1900: 126202 is century 1 (2000s), year 26, day 202, so July 21, 2026. Dates in the 1900s appear with five digits (99365). Decode them with the JDE converter, not a normal Julian date tool.

The leap-year checkpoint

Leap years have 366 days. In 2024, day 060 is February 29, day 061 is March 1 and day 366 is December 31. In a common year such as 2026, day 060 is already March 1 and the largest valid value is 365. This one-day shift is a common source of errors in spreadsheets and batch imports.

The rule: a year divisible by 4 is a leap year, except century years, which must also be divisible by 400. So 2024 and 2000 are leap years; 1900 and 2100 are not. The next leap years are 2028 and 2032.

Keep the leading zeros

The day part should always be three digits. Without padding, day 9 of 2026 might be written 20269, which is ambiguous and sorts wrongly. Write 2026009. In spreadsheets, store codes as text or use a custom number format such as 00000 or 0000000. The Excel formulas handle codes whose zeros have already been lost.

6. An astronomical Julian Date

Astronomical Julian Dates identify an instant, not just a day. At 00:00 UTC on July 21, 2026, the value is 2461242.5. At noon UTC it becomes 2461243.0, because the astronomical day begins at noon. The whole number for the date, 2461243, is the Julian Day Number (JDN).

Record an astronomical JD with its time scale (UTC, TT or TDB) and enough decimals for the precision you need: 0.00001 day is under a second. It is not a replacement for an industrial YYYYDDD code. Convert values with the Julian day converter.

7. A Modified Julian Date (MJD)

The Modified Julian Date subtracts 2,400,000.5 from the JD. For the same midnight, 2461242.5 − 2400000.5 = 61242.0. MJD starts at midnight UTC, which suits satellite, geodesy and computing work. A number around 61,000 with a decimal is a clue that you are looking at an MJD rather than a product code. See the MJD converter.

One date in every format

FormatJuly 21, 2026
Day of year (DDD)202
YDDD6202
YYDDD26202
JD Edwards CYYDDD126202
YYYYDDD2026202
ISO 8601 ordinal date2026-202
Julian Day Number2461243
Julian Date at 00:00 UTC2461242.5
Modified Julian Date at 00:00 UTC61242

Before you decode a real-world label

  1. Count the digits and note whether there is a decimal point.
  2. Strip any letters (plant, line or shift codes) around the digits.
  3. Find the year and the source context: product label, database, telescope or telemetry file.
  4. Check whether the year is a leap year before reading days after February.
  5. Confirm whether the code is a production date, a lot code, an inspection date or an actual expiry date.
  6. Use the full YYYYDDD format in records you create, rather than leaving a century to guess later.

Today

Today’s day-of-year code is 2026339 (YYDDD 26339, Saturday, December 5, 2026), and the current astronomical Julian Date is about 2461379.535. See both update live on the home page.

Convert a code instead of counting

Frequently asked questions

How do I read a Julian date?

Count the digits. The last three digits are almost always the day of the year (001 to 366), and the digits before them are the year: 26202 is 2026, day 202, which is July 21. Then count that many days from January 1, or enter the code in a converter, remembering that leap years add February 29 as day 060.

What is the YYDDD date format?

YYDDD is a 5-digit date: a two-digit year followed by the three-digit day of the year. 26035 is 2026, day 35, which is February 4, 2026. It is common on mainframes, calibration stickers, lot codes and military forms. The 7-digit version with a four-digit year is YYYYDDD, the same idea as the ISO 8601 ordinal date 2026-035.

What does 26035 mean on a calibration sticker?

Read as YYDDD it is day 35 of 2026, which is February 4, 2026. Calibration and inspection labels often use this form for the calibration date or the date the next calibration is due; the label usually says which.

Is 202 a Julian date?

It can be. A three-digit value is usually a day-of-year code, so 202 means the 202nd day of a particular year (July 21 in a common year). It needs a year from the label, batch record or other context before it becomes one exact date.

Why do some Julian dates start with zeroes?

The day-of-year part is always three digits wide: January 1 is 001, January 9 is 009. A 5-digit code for 2000 to 2009 also starts with 0 (05009). Keeping the zeroes keeps codes a fixed width and lets them sort correctly as text. When software stores the code as a number, the zeroes disappear and 05009 becomes 5009.

Can I tell the century from a YYDDD code?

Not from the code itself. 26202 could refer to 1926 or 2026, and different software resolves two-digit years with different cutoffs (see the table above). Check the context, and use YYYYDDD for any record that must stay unambiguous.