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.
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:
Adjust the month and year:
a = (14 − month) // 12y = year + 4800 − am = month + 12a − 3Compute the integer part:
JDN = day + (153m + 2)//5 + 365y + y//4 − y//100 + y//400 − 32045Add the time of day (if needed):
JD = JDN + (hour − 12)/24 + minute/1440 + second/86400
Example: Noon on January 1, 2000 UTa = (14‑1)//12 = 1, y = 2000+4800‑1 = 6799, m = 1+12*1‑3 = 10JDN = 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.timeandjdcallibraries 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 / Epoch | Gregorian Date (12:00 UT) | Julian Day Number |
|---|---|---|
| J2000.0 | January 1, 2000 | 2,451,545.0 |
| Unix epoch | January 1, 1970 | 2,440,587.5 |
| Modified JD origin | November 17, 1858 | 2,400,000.5 |
| GPS epoch | January 6, 1980 | 2,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.