
Julian Date Converter Guide: How to Convert YYDDD Ordinal Dates, Julian Day Numbers (JDN), and Gregorian to Julian Calendars
Subject matter specialists in payroll regulations, calendar standards, and temporal mathematics. Meet the team • Our editorial process
A Julian date converter translates standard Gregorian calendar dates (MM/DD/YYYY) into three distinct numerical systems depending on your industry: the 5-digit or 7-digit Ordinal Date (YYDDD / YYYYDDD) counting the day of the year from 001 to 365 (or 366 in a leap year), the continuous 7-digit Astronomical Julian Day Number (JDN) counting solar days since January 1, 4713 BC, and the historical Old Style (OS) Julian calendar conversion (currently 13 days behind the modern Gregorian calendar). When US supply chain managers, military logistics specialists, IRS tax processors, or consumers ask "what's the julian date today?", they are almost always looking for the ordinal day of the year—such as Day 288 for October 15 in a standard 365-day year, formatted as 26288 (YYDDD) or 2026-288 under ISO 8601-1:2019. Conversely, when astronomers, satellite engineers, and database architects use a julian day number calculator, they require the unbroken integer count of days elapsed since Greenwich noon on January 1, 4713 BC (for example, JDN 2,461,329). Meanwhile, genealogists, historians, and Eastern Orthodox liturgical scholars searching for a julian calendar converter need an exact gregorian calendar to julian calendar conversion that accounts for the 13-day secular drift caused by Pope Gregory XIII’s 1582 leap-year reform. This comprehensive engineering guide explains the exact formulas, lookup tables, leap-year adjustments, and real-world applications for all three Julian conversion systems. To convert any date or lot code immediately, use our interactive [Julian date converter](/tools/julian-date-converter), verify 366-day years with our [leap year calculator](/tools/leap-year-calculator), or measure days between milestones with our [date duration calculator](/tools/date-duration-calculator).
Key Takeaways & Expert Insights
- What's the Julian Date Today (Ordinal YYDDD): Combines the 2-digit year (YY) and the 3-digit sequential day of the year (DDD from 001 to 365, or 001 to 366 in a leap year). For example, October 15, 2026 is Julian date 26288 (or 2026288 in 7-digit IRS/ISO format).
- Leap Year Shift After February 28: In a 366-day leap year (such as 2024 or 2028), February 29 is Day 060. Every subsequent calendar date from March 1 through December 31 increases its Julian day number by +1 compared to a standard 365-day year.
- Astronomical Julian Day Number (JDN): Counts continuous solar days since 12:00 Noon UTC on January 1, 4713 BC in the proleptic Julian calendar. Modified Julian Date (MJD) simplifies this number via MJD = JD - 2,400,000.5, starting at midnight UTC on November 17, 1858.
- Gregorian Calendar to Julian Calendar Conversion: Between March 1, 1900 and February 28, 2100, the modern Gregorian calendar is exactly 13 days ahead of the historical Old Style (OS) Julian calendar. Subtract 13 days from a modern Gregorian date to find the corresponding Julian calendar date.
- Food Lot Codes & US Military (DoD) Logistics: USDA/FDA food packaging, MRE rations, ammunition lots, and Defense Logistics Agency (DLA) requisitions use 4-digit (YDDD) or 5-digit (YYDDD) Julian dates to track production timestamps without slash or hyphen delimiters.
Table of Contents
The Three Meanings of "Julian Date": YYDDD, JDN, and Old Style Calendar
In modern English technical usage, the phrase "Julian date" is shared across three completely different chronological systems. Failing to distinguish which system a specification requires can cause severe errors in ERP database scripts, supply chain expiration audits, and astronomical ephemeris calculations.
1. Ordinal Day-of-Year Format (YYDDD / YYYY-DDD): Informally called a "Julian date" across US manufacturing, retail warehousing, banking, the Internal Revenue Service (IRS), and the Department of Defense (DoD). Technically defined by ISO 8601-1:2019 as an "ordinal date," it simply counts the sequential day of the current calendar year from 001 (January 1) to 365 (December 31 in a common year) or 366 (December 31 in a leap year).
2. Astronomical Julian Day Number (JDN) and Julian Date (JD): Introduced in 1583 by French scholar Joseph Justus Scaliger, the Julian Period is a 7,980-year chronological cycle starting at 12:00 Noon Universal Time (UTC) on January 1, 4713 BC. Astronomers use a julian day number calculator to assign a unique, unbroken 7-digit integer to every solar day in human history, eliminating month-length and calendar-reform discontinuities when computing planetary orbits or eclipse intervals.
3. The Historical Julian Calendar (Old Style / OS): Enacted by Julius Caesar in 45 BC, this solar calendar governed Europe and the Mediterranean for over 1,600 years before Pope Gregory XIII introduced the Gregorian calendar reform in October 1582 (adopted by Great Britain and the American colonies in September 1752). Because the Julian calendar inserts a leap day every 4th year without exception, its average year length is 365.2500 days—about 11 minutes and 14 seconds longer than the true vernal equinox tropical year (365.24219 days).

| System Name | Format / Example (Oct 15, 2026) | Starting Epoch / Cycle | Primary US & Global Industries |
|---|---|---|---|
| 5-Digit Ordinal Julian Date | 26288 (YYDDD) | Resets Jan 1 each year (001–365/366) | US Military (DoD), USDA/FDA Food Lot Codes, Logistics |
| 7-Digit ISO Ordinal Date | 2026288 or 2026-288 (YYYY-DDD) | Resets Jan 1 each year (001–365/366) | IRS Tax Transcripts, Mainframe COBOL/DB2, Banking |
| Astronomical Julian Day Number (JDN) | 2,461,329 (at 12:00 UTC) | Continuous since Jan 1, 4713 BC Noon UTC | NASA JPL, US Naval Observatory, Astrophysics |
| Modified Julian Date (MJD) | 61,328.5 (JD - 2,400,000.5) | Continuous since Nov 17, 1858 00:00 UTC | GPS Satellites, Space Track, Atomic Clock Telemetry |
| Historical Julian Calendar (Old Style) | October 2, 2026 (OS) | 45 BC Roman Reform (13 days behind in 2026) | Genealogy, Colonial History, Orthodox Liturgical Dates |
What's the Julian Date Today? How 5-Digit (YYDDD) & 7-Digit Ordinal Dates Work
When a warehouse supervisor, military supply clerk, or quality-assurance inspector asks "what's the julian date today?", they need the current sequential day of the year padded to three digits (DDD), often prefixed by the two-digit or four-digit year.
Calculating the ordinal Julian date requires summing the total days in all completed months prior to the current month, and then adding the current day of the month. Because February contains 28 days in a common year and 29 days in a leap year, every calendar date from March 1 through December 31 has two possible 3-digit Julian numbers depending on whether the year is a leap year.
The mathematical structure of a 5-digit and 7-digit ordinal Julian date is defined as follows:
• First 2 Digits (YY) or 4 Digits (YYYY): Represent the calendar year (for example, "26" or "2026" for the year 2026). • Last 3 Digits (DDD): Represent the sequential day of the year, zero-padded from 001 (January 1) through 365 (or 366 in a leap year).
For example, on January 15, 2026, the 3-digit day of the year is 015, producing a 5-digit Julian date of 26015 and a 7-digit code of 2026015. On July 4, 2026 (a standard 365-day year), 181 days have elapsed in the first six months (31 + 28 + 31 + 30 + 31 + 30 = 181); adding 4 days in July yields Day 185, or 26185. In a leap year like 2028, July 4 shifts by +1 day to become Day 186, or 28186. You can check any date instantly in our Julian date converter.
Julian Date Converter
Convert Gregorian dates to 5-digit YYDDD codes, Julian Day Numbers (JDN), and Old Style Julian calendar dates.
Try Calculator Tool Now
- Verify Whether the Target Year is a Leap Year:
Check if the 4-digit year is divisible by 4 (and not by 100, unless also divisible by 400). In a common year (e.g., 2025, 2026, 2027), February has 28 days; in a leap year (e.g., 2024, 2028), February has 29 days.
- Look Up the Cumulative Month Offset:
Find the total elapsed days before the 1st of your target month (for instance, before October 1, 273 days have elapsed in a standard year, or 274 days in a leap year).
- Add the Day of the Month and Format as YYDDD:
Add the day of the month to the cumulative offset (e.g., October 15, 2026 = 273 + 15 = Day 288). Prefix the 3-digit number with the 2-digit year to produce 26288 (or 2026288).
Complete 365-Day & 366-Day Leap Year Month Offset Table
Instead of scanning a 365-cell wall chart, engineers and payroll auditors can convert any calendar date into an ordinal Julian date in seconds using the Cumulative Month Offset Table below. Simply take the "Elapsed Days Before Month" for your target month and add the day of the month (DD).
Notice how January and February share identical Julian day ranges in both standard and leap years (001–031 and 032–059), while February 29 occupies Day 060 in leap years, shifting March through December forward by exactly 1 integer.
| Month | Days in Month (Common / Leap) | Offset Before Month (Common Year) | Julian Range (365-Day Common Year) | Offset Before Month (Leap Year) | Julian Range (366-Day Leap Year) |
|---|---|---|---|---|---|
| January | 31 / 31 | +0 | 001 – 031 | +0 | 001 – 031 |
| February | 28 / 29 | +31 | 032 – 059 | +31 | 032 – 060 |
| March | 31 / 31 | +59 | 060 – 090 | +60 | 061 – 091 |
| April | 30 / 30 | +90 | 091 – 120 | +91 | 092 – 121 |
| May | 31 / 31 | +120 | 121 – 151 | +121 | 122 – 152 |
| June | 30 / 30 | +151 | 152 – 181 | +152 | 153 – 182 |
| July | 31 / 31 | +181 | 182 – 212 | +182 | 183 – 213 |
| August | 31 / 31 | +212 | 213 – 243 | +213 | 214 – 244 |
| September | 30 / 30 | +243 | 244 – 273 | +244 | 245 – 274 |
| October | 31 / 31 | +273 | 274 – 304 | +274 | 275 – 305 |
| November | 30 / 30 | +304 | 305 – 334 | +305 | 306 – 335 |
| December | 31 / 31 | +334 | 335 – 365 | +335 | 336 – 366 |
How to Decode USDA/FDA Food Packaging & Military Lot Codes
Ordinal Julian dates are the backbone of batch traceability across the United States food supply chain, beverage bottling, pharmaceutical manufacturing, and Department of Defense (DoD) MILSTRIP/MILSTRAP logistics.
1. 3-Digit Egg Carton & Dairy Packaging Codes (DDD): Under USDA Agricultural Marketing Service (AMS) regulations, shell egg cartons graded under federal inspection must display a 3-digit Julian pack date (001–365) indicating the exact day the eggs were washed, graded, and carton-packed. For example, an egg carton stamped with "288" alongside a "Sell By" date was packed on October 15 (in a non-leap year). USDA guidelines stipulate that packed eggs may carry a "Sell By" date no more than 30 days after the Julian pack date.
2. 4-Digit MRE & Beverage Lot Codes (YDDD): U.S. Military Meals, Ready-to-Eat (MRE) rations, canned goods, and beverage bottlers frequently stamp a 4-digit Julian date code formatted as YDDD, where Y is the single last digit of the production year and DDD is the ordinal day of the year. For example, an MRE pouch stamped "6196" was packed on the 196th day of 2026 (July 15, 2026).
3. 5-Digit DoD & Commercial Batch Codes (YYDDD): Standard MIL-STD-129 military shipping labels, aerospace parts, and chemical drums utilize 5-digit YYDDD codes (e.g., 26288 for October 15, 2026). Because YYDDD codes sort chronologically as plain integers and require only 5 characters, they prevent international ambiguity between American MM/DD/YY and European DD/MM/YY date stamps. When combining Julian dates with 24-hour Zulu timestamps, cross-reference our military time calculator.
3-Digit Code (DDD, e.g., 045): Represents February 14 of the current year (used on USDA egg cartons and fresh produce).
4-Digit Code (YDDD, e.g., 6288): "6" = 2026, "288" = October 15 (used on US military MREs, canned goods, and tire/battery stamps).
5-Digit Code (YYDDD, e.g., 26288): "26" = 2026, "288" = October 15 (standard DoD logistics and FDA pharmaceutical lot code).
7-Digit Code (YYYYDDD, e.g., 2026288): Full 4-digit year + 3-digit ordinal day (used on IRS Cycle/DLN tax transcripts and ISO 8601 logs).
Julian Day Number Calculator: Astronomical JDN & Modified Julian Date (MJD)
In astronomy, astrodynamics, and scientific computing, a julian day number calculator computes a completely different value from the 1–365 day of the year. The Astronomical Julian Day Number (JDN) is the integer assigned to a whole solar day starting at 12:00 Noon Universal Time (UTC), counting continuously from JDN 0 on January 1, 4713 BC (-4712) in the proleptic Julian calendar (which corresponds to November 24, 4714 BC in the proleptic Gregorian calendar).
Why did astronomers choose 4713 BC and start days at 12:00 Noon UTC? Joseph Justus Scaliger multiplied three historical cycles together: the 28-year Solar Cycle, the 19-year Metonic Lunar Cycle, and the 15-year Roman Indiction tax cycle (28 × 19 × 15 = 7,980 years). The most recent year in antiquity when all three cycles started at 1 simultaneously was 4713 BC. Astronomers anchored the start of each Julian Day at 12:00 Noon UTC so that telescopic observations conducted throughout a single night in Europe would all fall under the exact same integer day number without rolling over at midnight.
To convert any modern Gregorian calendar date (Year Y, Month M from 1 to 12, Day D from 1 to 31) into its exact integer Julian Day Number at 12:00 Noon UTC, astronomical software implements the Fliegel–Van Flandern integer division algorithm:
In modern satellite telemetry and civil metrology, 7-digit Julian Dates starting at noon can be cumbersome. Therefore, in 1957 the Smithsonian Astrophysical Observatory introduced the Modified Julian Date (MJD), which subtracts 2,400,000.5 from the Julian Date. Subtracting the extra 0.5 shifts the daily rollover from 12:00 Noon UTC to 00:00 Midnight UTC, aligning MJD with civil calendar days and Unix epoch timestamps. To convert between civil dates and POSIX seconds, see our Unix timestamp converter.
Gregorian Calendar to Julian Calendar Conversion: The 13-Day Drift Explained
When users search for a julian calendar converter or gregorian calendar to julian calendar conversion, they are often translating historical documents, Russian or Greek archival records, or Eastern Orthodox religious holidays between the modern Gregorian calendar ("New Style" / NS) and the ancient Julian calendar ("Old Style" / OS).
Why do the two calendars differ? The Old Style Julian calendar (45 BC) assumed the solar year was exactly 365.25 days long, inserting a leap day every 4 years without exception (including every century year: 1300, 1400, 1500, 1700, 1800, 1900). However, Earth’s true vernal equinox year is 365.24219 days. Consequently, the Julian calendar gained approximately 3 extra days every 400 years.
In 1582, Pope Gregory XIII corrected this accumulated 10-day drift by dropping 10 calendar days in October 1582 (Thursday, October 4, 1582 Julian was followed immediately by Friday, October 15, 1582 Gregorian) and instituting the century leap-year rule: century years divisible by 100 (such as 1700, 1800, 1900, and 2100) are NOT leap years in the Gregorian calendar unless they are also divisible by 400 (such as 1600 and 2000).
Because the years 1700, 1800, and 1900 were leap years in the Julian calendar but common 365-day years in the Gregorian calendar, the gap between the two calendars widened by +1 day in each of those centuries (while remaining unchanged in 2000 because 2000 was a leap year in both calendars). Therefore, from March 1, 1900 through February 28, 2100, the Gregorian calendar is exactly 13 days ahead of the Julian calendar.
| Historical Era (Gregorian Range) | Secular Drift (Days Difference) | Conversion Rule (Gregorian to Julian Old Style) | Historical Example |
|---|---|---|---|
| Oct 15, 1582 – Feb 28, 1700 | 10 Days | Subtract 10 days from Gregorian date | Oct 15, 1582 (NS) = Oct 5, 1582 (OS) |
| Mar 1, 1700 – Feb 28, 1800 | 11 Days | Subtract 11 days from Gregorian date | George Washington born Feb 22, 1732 (NS) = Feb 11, 1731/32 (OS) |
| Mar 1, 1800 – Feb 28, 1900 | 12 Days | Subtract 12 days from Gregorian date | Alaska Purchase Oct 18, 1867 (NS) = Oct 6, 1867 (OS) |
| Mar 1, 1900 – Feb 28, 2100 | 13 Days (Current Era) | Subtract 13 days from Gregorian date | Jan 7, 2026 (NS) = Dec 25, 2025 (OS Orthodox Christmas) |
| Mar 1, 2100 – Feb 28, 2200 | 14 Days | Subtract 14 days from Gregorian date | Year 2100 is a Julian leap year but Gregorian common year |
Step-by-Step Worked Conversion Examples
Review these three step-by-step worked examples illustrating how our Julian Date Converter resolves ordinal packaging dates, leap-year shifts, and historical calendar translations:
- Example 1: Converting October 15, 2026 to 5-Digit Julian Date (YYDDD) & JDN:
1. Check Leap Year Status: 2026 ÷ 4 = 506.5 (not divisible by 4), so 2026 is a standard 365-day year. 2. Find Cumulative Month Offset: From the table above, 273 days have elapsed between January 1 and September 30. 3. Add Current Day of Month: 273 + 15 = Day 288 of 365 (with 77 days remaining in 2026). 4. Format Ordinal Codes: 5-Digit YYDDD = 26288; 7-Digit ISO = 2026288 (2026-288). 5. Compute Astronomical JDN: At 12:00 Noon UTC on October 15, 2026, JDN = 2,461,329 (Modified Julian Date MJD = 61,328.5).
- Example 2: Decoding a 5-Digit Military Lot Code "28060" (Leap Year):
1. Parse Year and Day: In "28060", YY = 28 (Year 2028) and DDD = 060 (60th day of the year). 2. Verify Leap Year: 2028 ÷ 4 = 507, so 2028 is a 366-day leap year where February has 29 days. 3. Subtract January Days: 60 - 31 (January) = 29 days into February. 4. Result: Lot code 28060 corresponds to Tuesday, February 29, 2028 (whereas in a non-leap year like 2026, Day 060 would be March 1).
- Example 3: Gregorian Calendar to Julian Calendar Conversion for January 7, 2026:
1. Identify the Century Drift Offset: For any date between March 1, 1900 and February 28, 2100, the modern Gregorian calendar is 13 days ahead of the Old Style Julian calendar. 2. Subtract 13 Days from January 7, 2026: Subtracting 7 days reaches December 31, 2025; subtracting the remaining 6 days (31 - 6 = 25) lands on December 25, 2025. 3. Result: January 7, 2026 on the civil Gregorian calendar is December 25, 2025 on the Julian calendar—which is why Eastern Orthodox churches following the Old Style calendar celebrate Christmas on January 7.
Recommended Internal Links & Calculator Suite
Julian Date Converter
Convert Gregorian dates to 5-digit YYDDD codes, Julian Day Numbers (JDN), and Old Style Julian calendar dates.
Leap Year Calculator
Verify whether any calendar year has 365 or 366 days under Gregorian leap year rules.
Date Duration Calculator
Compute exact elapsed calendar days, weeks, and months between any two dates.
Military Time Calculator
Convert 24-hour military clock times and calculate duty shift intervals.
Official Standards & External References
U.S. Naval Observatory (USNO): Julian Date Converter & Astronomical Applications
Official U.S. Department of Defense astronomical reference for Julian Day Numbers (JDN) and Universal Time.
NASA Jet Propulsion Laboratory (JPL): Julian Date Time Conversion Standards
Spaceflight and orbital mechanics specifications for Julian Date (JD) and Modified Julian Date (MJD).
USDA Food Safety and Inspection Service: Food Product Dating & Julian Lot Codes
Federal guidelines explaining closed-code 3-digit and 5-digit Julian packaging dates on US food products.
Frequently Asked Questions
Q1:What's the Julian date today?
Today's ordinal Julian date is the sequential day of the year from 001 (January 1) to 365 (December 31, or 366 in a leap year), often written in 5-digit YYDDD format. You can view today's live 3-digit DDD, 5-digit YYDDD, 7-digit YYYYDDD, and astronomical Julian Day Number (JDN) at the top of our interactive Julian Date Converter.
Q2:How do I convert a 5-digit Julian date (YYDDD) to a regular calendar date?
Split the 5-digit number into the first 2 digits (YY = year) and the last 3 digits (DDD = day of the year). For example, in 26288, "26" is 2026 and "288" is the 288th day of the year. Subtract completed month lengths (288 - 273 days through September 30 = 15) to get October 15, 2026.
Q3:What is the difference between an ordinal Julian date and an astronomical Julian Day Number (JDN)?
An ordinal Julian date (used in US military logistics, IRS transcripts, and food packaging) resets every January 1 and counts days from 001 to 365 or 366 (e.g., 26288). An astronomical Julian Day Number (JDN) never resets; it is a continuous 7-digit count of solar days since Noon UTC on January 1, 4713 BC (e.g., 2,461,329).
Q4:How does Gregorian calendar to Julian calendar conversion work today?
Between March 1, 1900 and February 28, 2100, the modern Gregorian calendar is exactly 13 days ahead of the historical Old Style (OS) Julian calendar. To convert a modern Gregorian date to the Julian calendar, subtract 13 days (for example, October 15, 2026 Gregorian equals October 2, 2026 Julian).
Q5:How do leap years affect the Julian date chart?
In a 366-day leap year (such as 2024 or 2028), February has 29 days, making February 29 Julian Day 060. Consequently, every date from March 1 (Day 061) through December 31 (Day 366) has a Julian day number that is 1 higher than in a standard 365-day year.
Conclusion & Summary
Whether you are decoding a 5-digit YYDDD food lot code, auditing IRS and military logistics records, computing an astronomical Julian Day Number (JDN) for orbital mechanics, or executing a historical Gregorian calendar to Julian calendar conversion, distinguishing between ordinal dates, continuous JDN epochs, and Old Style calendar drift ensures 100% chronological accuracy. Bookmark our interactive Julian Date Converter to translate any date, 5-digit batch code, or 7-digit JDN in real time.
Related Guides & Articles

Days to Weeks Calculator Guide: ISO 8601 Standards, Modulo Math, and Project Planning

Hours to Days Explained: Calendar Days (24h) vs Business Workdays (8h) Conversion Math
