Julian Date Converter

Need to convert between a calendar date and a Julian Day Number? Use the calculator below. It handles two widely used interpretations of “Julian date”: the astronomical continuous day count (JD) and the business ordinal day‑of‑year (YYYY‑DDD). Both conversion directions are supported instantly.

Converter Mode
Input Parameters
Conversion Results

Disclaimer: Accuracy is intended for civilian, business, and general astronomical usage. For high-precision scientific work, use standard ephemeris services.

The tool above accepts standard Gregorian dates from 1582 onward and returns the corresponding Julian Day Number (including an optional decimal for time of day), Modified Julian Day, or the ordinal format. Switch between modes to fit your needs–whether you’re reducing orbital data or preparing shipment labels.

What Is a Julian Date? Two Meanings in One Tool

Astronomical Julian Day Number (JD): A continuous count of days since noon Universal Time on January 1, 4713 BC in the proleptic Julian calendar. The system was devised by Joseph Scaliger and named after his father, Julius–not the Roman emperor. JD is the backbone of celestial mechanics, satellite tracking, and any application that requires seamless cross‑calendar arithmetic. The integer part defines the day; the fractional part pinpoints the exact time.

Ordinal Day of Year: In supply‑chain, manufacturing, and ERP systems, a “Julian date” often means the year followed by the day number within that year. For example, 2026-045 is February 14. This compact format eliminates ambiguity and speeds up date‑based sorting.

The converter supports both definitions. Choose Astronomical JD for science or Ordinal Day (YYDDD) for business.

How to Convert a Calendar Date to Julian Day Number

The standard formula for Gregorian dates (year > 1582) is:

  1. Adjust the month and year:
    a = (14 − month) // 12
    y = year + 4800 − a
    m = month + 12a − 3

  2. Compute the integer part:
    JDN = day + (153m + 2)//5 + 365y + y//4 − y//100 + y//400 − 32045

  3. Add the time of day (if needed):
    JD = JDN + (hour − 12)/24 + minute/1440 + second/86400

Example: Noon on January 1, 2000 UT
a = (14‑1)//12 = 1, y = 2000+4800‑1 = 6799, m = 1+12*1‑3 = 10
JDN = 1 + (153*10+2)//5 + 365*6799 + 6799//4 − 6799//100 + 6799//400 − 32045
= 1 + 306 + 2481635 + 1699 − 67 + 16 − 32045 = 2451545
Time = 0 → fractional part = 0.0. The full JD is 2451545.0 – the well‑known J2000.0 epoch.

The tool executes the calculation automatically for any date within the supported range.

Ordinal Day Conversion: The Business “Julian Date”

The ordinal format stores a date as YYYY‑DDD, where DDD is the day of the year (1 through 365, or 366 in leap years).

To convert manually:

  • Determine if the year is leap: divisible by 4, but not by 100 unless also by 400.
  • Sum the days in each month up to the previous month.
  • Add the day of the month to the cumulative total.

Example: March 15, 2026 is day 74 (31 January + 28 February + 15). The ordinal representation is 2026-074.

The calculator performs this instantly in both directions–useful for legacy databases, manufacturing date codes, and ERP date columns.

Julian Dates in Programming and Astronomy

  • Python’s astropy.time and jdcal libraries use JD for all internal representations.
  • Satellite two‑line elements (TLEs) often include an epoch in a modified Julian form (MJD = JD − 2400000.5) to save digits.
  • Database systems like IBM i and some Oracle configurations still rely on ordinal “Julian dates” for backward compatibility.
  • Food packaging and lot numbers routinely use a YYDDD (or YYJJJ) code to identify production dates.

Note: For high‑precision astronomical work (sub‑second accuracy), always use the decimal time fraction in JD. The converter above allows you to input hours and minutes for that purpose.

Quick Reference: JD for Key Epochs

Event / EpochGregorian Date (12:00 UT)Julian Day Number
J2000.0January 1, 20002,451,545.0
Unix epochJanuary 1, 19702,440,587.5
Modified JD originNovember 17, 18582,400,000.5
GPS epochJanuary 6, 19802,444,244.5

Disclaimer: This converter provides results for civilian use. When absolute precision is critical (e.g., spacecraft navigation), cross‑check with established ephemeris services.

Frequently Asked Questions

What is a Julian Date?
Julian Date (JD) is a continuous count of days from noon Universal Time on January 1, 4713 BC in the Julian proleptic calendar. In business contexts, it often means an ordinal day of the year (YYDDD).
How do I convert a Gregorian date to a Julian Day Number?
Use the formula: a = (14−month)/12, y = year+4800−a, m = month+12a−3, JD = day + (153m+2)/5 + 365y + y/4 − y/100 + y/400 − 32045. The converter above performs this automatically for any date up to 1582 CE.
What is the difference between Julian Date and Julian calendar?
Julian Date is an astronomical day count, while the Julian calendar is the old Roman calendar introduced by Julius Caesar. They are unrelated except in name. JD uses a fixed epoch; the Julian calendar uses leap years every 4 years.
Is Modified Julian Date (MJD) the same as JD?
No. MJD = JD − 2400000.5. It starts at midnight rather than noon and has a smaller number, often used in geodesy and satellite tracking. The converter can output MJD as an option.
How is the ordinal day of year used?
The ordinal format (year + day number, e.g., 2026-032) is common in manufacturing, logistics, and ERP systems. It simplifies date arithmetic and reduces storage. Our tool switches between standard dates and ordinal days instantly.
Can I convert JD to a calendar date if I know only the whole number?
Yes, a whole-number JD (Julian Day Number) corresponds to 12:00 UTC of that day. The converter reverses the formula to retrieve the Gregorian date. For fractional times, use the decimal part to get hours, minutes, and seconds.
Why is 4713 BC the starting point of Julian Date?
The epoch was chosen by Joseph Scaliger in 1583 as the most recent time when three cycles–the 28-year solar cycle, the 19-year lunar cycle, and the 15-year indiction cycle–all began on January 1. The resulting 7,980‑year Julian Period started in 4713 BC.
  1. Moon Phase Calculator