Reference

What Is a Julian Date?

“Julian date” means two different things depending on who is using it. This page explains both, shows how to read one, and lists the mistakes that most often lead to a wrong date.

The short answer

In industry and IT, a Julian date is the year plus the day of the year: 2026339 means 2026, day 339, which is today.

In astronomy, the Julian Date is a continuous count of days since noon UT on January 1, 4713 BC, right now about 2,461,379.

They share a name, and both count days, but they are otherwise unrelated.

1. The day-of-year Julian date (industry and IT)

This is the one most people mean. It is the ordinal day of the year, a number from 1 to 365 (366 in a leap year), usually written as three digits with the year in front. January 1 is 001, February 1 is 032 and December 31 is 365 or 366. The international standard ISO 8601 calls it the ordinal date; on the shop floor and in software it is called a Julian date.

The same day, July 21, 2026 (day 202), in each common layout:

FormatJuly 21, 2026Typical use
YYYYDDD2026202Databases, batch records, data file names
YYDDD26202Packaging lot codes, IBM mainframes
YYYY-DDD2026-202ISO 8601 ordinal date
DDD202Egg cartons (USDA pack date), GPS data
YDDD6202MRE cases, military requisition numbers
CYYDDD126202Oracle JD Edwards (C = centuries after 1900)

It is popular because it is short, fixed-width and sorts in date order, and because the gap between two dates in the same year is a simple subtraction: day 202 minus day 150 is 52 days. The drawback is that nobody can read it at a glance, which is why lookup tables and decoders exist.

How to read a Julian date, step by step

  1. Take the last three digits as the day of the year. In 26202 that is 202.
  2. Read the digits in front as the year. Four digits are the full year; two digits are almost always 20xx for current products (26 = 2026); one digit is the last digit of the year, which you have to place from context, usually the most recent such year.
  3. Turn the day number into a date. Add up month lengths until you pass it, or use the day-number table. Day 202: January to June hold 181 days in a common year, so day 202 is the 21st day of July.
  4. Check for a leap year. In a leap year February has 29 days, so every date from March 1 on is one day number higher. Day 202 of 2024 was July 20, not July 21.

Worked examples

CodeBreakdownDate
20262022026, day 202July 21, 2026
240602024 (leap), day 60February 29, 2024
260602026 (common), day 60March 1, 2026
6202year ending in 6, day 202July 21, 2026 (but July 20, 2016)
99365JD Edwards: century 0 dropped, 99, day 365December 31, 1999

More cases, including codes buried in lot numbers, are on the Julian date examples page.

2. The astronomical Julian Date (science)

The astronomical Julian Date (JD) is a single running count of days that never restarts. It counts from 12:00 Universal Time on January 1, 4713 BC in the proleptic Julian calendar, so any instant is one number, with the time of day as a decimal fraction.

  • JD 2451545.0 is noon UT on January 1, 2000, the reference epoch astronomers call J2000.0. Midnight at the start of that day is 2451544.5.
  • The Julian Day Number (JDN) is the whole-number part for a date, its JD at noon: January 1, 2026 is JDN 2461042.
  • Intervals are subtractions: 2461042 − 2451545 = 9,497 days from January 1, 2000 to January 1, 2026.

The day starts at noon because astronomers observed at night: with a noon boundary, one night's observations in Europe all carry the same day number. The Modified Julian Date (MJD) = JD − 2,400,000.5 moves the start to midnight and drops the leading digits; it is common in satellite tracking and geodesy. See the Julian Day reference and the MJD page for the whole family.

The two side by side

Day-of-year Julian dateAstronomical Julian Date
Today2026339 or 26339about 2,461,379
Counts fromJanuary 1 of each yearNoon UT, January 1, 4713 BC
RestartsEvery January 1Never
Changes atMidnight, in the system's time zoneNoon UTC
Time of dayNot includedDecimal fraction (.5 = midnight UTC)
Length3 to 7 digits7 digits plus decimals
Standard nameOrdinal date (ISO 8601)Julian Date / Julian Day
Used byFood, military, manufacturing, mainframes, ERPAstronomy, space science, software date libraries

Where does the name come from?

The astronomical system goes back to 1583, when the scholar Joseph Scaliger defined a 7,980-year “Julian Period” whose year 1 is 4713 BC, the last year in which three calendar cycles (the 28-year solar cycle, the 19-year lunar cycle and the 15-year indiction) all began together. The period is named after the Julian calendar its years are counted in. In 1849 the astronomer John Herschel turned it into a running count of days, which became the Julian Day.

The day-of-year meaning came much later, in business computing and manufacturing, borrowing the name of the astronomers' day count. The Julian calendar itself, the leap-year calendar Julius Caesar introduced in 45 BC, is a third thing again. All three are still in use.

Common mistakes

  • Confusing it with the Julian calendar. A “Julian calendar date” is a date in Caesar's calendar, which now runs 13 days behind the Gregorian calendar. It has nothing to do with day-of-year codes.
  • Counting from zero. January 1 is day 001. Some programming interfaces (C's tm_yday) start at 0, which makes every code one day early.
  • Ignoring leap years. From March 1 on, the same day number is one calendar day earlier in a leap year. Decode a code with its own year, not this year.
  • Guessing the century. 26202 could be 1926 or 2026. Software uses a pivot year; records you create should use the 7-digit form.
  • Mixing time zones. A system that logs in UTC changes to the next day's code hours before (or after) local midnight.
  • Mixing JD and MJD. They differ by 2,400,000.5, and the .5 matters: MJD starts at midnight, JD at noon.

Which one do you have? A quick test

If the number…It's probably…
has 3–7 digits and ends in 001–366 (e.g. 2026339)a day-of-year Julian date
is around 2.46 million, often with a decimal (e.g. 2,461,379)an astronomical Julian Date
is around 61,000 with a decimala Modified Julian Date (MJD)
is 6 digits starting with 1 (e.g. 126339)a JD Edwards CYYDDD date
came from a product label or business systema day-of-year Julian date
came from an observatory, satellite or ephemerisan astronomical JD or MJD

Convert whichever you have

Frequently asked questions

What is a Julian date?

In business, manufacturing and IT, a Julian date is a date written as the year and the day of the year, for example 2026202 or 26202 for July 21, 2026 (day 202). In astronomy, the Julian Date is a continuous count of days since noon Universal Time on January 1, 4713 BC, now about 2.46 million. Which one is meant depends on where the number came from.

Why does "Julian date" mean two different things?

The astronomical meaning came first. In 1583 Joseph Scaliger defined the 7,980-year Julian Period, and in 1849 the astronomer John Herschel used it as the basis of a continuous day count, the Julian Day, which astronomers still use. Later, programmers and manufacturers borrowed the name for the day-of-year count, which is also a count of days, though it restarts every January. The standards name for that format is the ordinal date (ISO 8601), but "Julian date" is what most people call it.

How do I read a Julian date on a product or package?

Most packaged-goods codes use the day-of-year format. The last three digits are the day of the year, and the digits in front are the year: 26202 is 2026, day 202, which is July 21. A 4-digit code is usually one year digit plus the day (6202 is day 202 of a year ending in 6), and a 3-digit code is the day alone. Codes are often embedded among plant and line numbers, so look for a 3-digit group between 001 and 366.

Is the Julian date the same as the Julian calendar?

No. The Julian calendar is the calendar Julius Caesar introduced in 45 BC, which the Gregorian calendar replaced from 1582 onward. It is still 13 days behind the Gregorian calendar and is used by some Orthodox churches. The astronomical Julian Date is a day count whose starting point happens to be defined in that calendar, and the day-of-year Julian date has nothing to do with it at all.

What is the Modified Julian Date (MJD)?

The Modified Julian Date is the astronomical Julian Date minus 2,400,000.5. The half-day shift makes the MJD start at midnight instead of noon, and the smaller number is easier to store. MJD 0 is midnight UTC at the start of November 17, 1858. It is widely used in satellite tracking, geodesy and computing.

Does the Julian date change at midnight or noon?

The day-of-year Julian date changes at midnight, like any calendar date, in whatever time zone the system uses. The astronomical Julian Date increases by a whole number at 12:00 noon Universal Time, so at midnight UTC its fractional part is .5.