The Seven Julian Date Formats

"Julian date" means at least seven different things. Here is each format, who uses it, and its value right now — Thursday, June 18, 2026. Confusing two of these is the single most common Julian date mistake.

Format Today
DOY Day of Year (Ordinal Date) 169
YJJJ 4-digit (YJJJ) 6169
YYDDD 5-digit (YYDDD) 26169
YYYYDDD 7-digit (YYYYDDD) 2026169
JDN Julian Day Number (JDN) 2461210
JD Julian Date (JD) 2461210.25250
MJD Modified Julian Date (MJD) 61209.75250

DOY — Day of Year (Ordinal Date)

Today: 169

The simplest form: the count of days since January 1, which is always day 1. December 31 is day 365 (or 366 in a leap year). Often loosely called the "Julian day" even though it carries no year information at all.

Used by: Spreadsheets, aviation logs, general business

YJJJ — 4-digit (YJJJ)

Today: 6169

A single year digit followed by the three-digit day of year. Compact enough to fit a crowded ink-jet stamp, but ambiguous across decades — a "6" could mean 2016 or 2026. This is what most food brands print.

Used by: Food packaging, consumer batch codes, some military

YYDDD — 5-digit (YYDDD)

Today: 26169

Two year digits plus the three-digit day of year. The classic mainframe and COBOL date format, and the basis of the Budweiser born-on date. Unambiguous within any 100-year window.

Used by: Mainframes, COBOL, Budweiser "born-on" dates

YYYYDDD — 7-digit (YYYYDDD)

Today: 2026169

A full four-digit year plus the day of year. The unambiguous, archival-grade ordinal format. Preferred by the DoD and by exporters like Cargill where four-digit codes would fail.

Used by: U.S. Department of Defense, export supply chains

JDN — Julian Day Number (JDN)

Today: 2461210

A continuous integer count of days since 4713 BC January 1 at noon UTC (proleptic Julian calendar). Subtract one JDN from another to get the exact number of days between any two dates — the reason astronomers adopted it.

Used by: Astronomy, FITS files, date arithmetic

JD — Julian Date (JD)

Today: 2461210.25250

The JDN extended with a fractional day for the time of day. The epoch is noon, not midnight, so a whole night of observation falls inside a single integer day. At 00:00 UTC the JD ends in .5.

Used by: Observatories, spacecraft, scientific timing

MJD — Modified Julian Date (MJD)

Today: 61209.75250

JD minus 2,400,000.5. The subtraction shifts the day boundary to civil midnight and shrinks the number to five digits, which is why GPS and Earth-orientation systems use it.

Used by: GPS, IERS, satellite telemetry

The two families, and why they collide

Six of these formats fall into two unrelated families that happen to share a name. The ordinal day-of-year codes (DOY, YJJJ, YYDDD, YYYYDDD) describe a calendar day with no time-of-day component; they were adopted by industry for compact, sortable date stamps. The astronomical counts (JDN, JD, MJD) describe a continuous timeline of days and fractions since 4713 BC; they were designed for computing intervals between events.

The collision happens because both got called "Julian." The astronomical system is named after Joseph Scaliger's father, Julius Caesar Scaliger — not the Julian calendar. The ordinal codes picked up the name much later, from the U.S. military supply chain in the punched-card era, and from there spread into the food industry. When someone says "today's Julian date," the right answer depends entirely on whether they are stamping a soup can or scheduling a telescope.

Rule of thumb

If the number has 3–7 digits and no decimal point, it is an ordinal day-of-year code. If it has a decimal point and is in the millions (JD) or tens of thousands (MJD), it is astronomical.

Convert any date →

Get all seven formats for any calendar date, or reverse a code back to a date.

Decode a product code →

Read the Julian date stamped on packaging from 15 major brands.