Julian date converter
The Julian Day Number is a continuous count of days since January 1, 4713 BCE used in astronomy to compare dates across calendar systems. Enter a Gregorian date or a JDN to.
Saved to favorites
Your favorites live on the home page, under Your favorites. They're saved only on this device & browser — open the site on your phone or in another browser and you won't see them there. No account, no server.
Formula
Gregorian date → JDN (Meeus, “Astronomical Algorithms” Ch. 7)
a = floor((14 − month) / 12)
y = year + 4800 − a
m = month + 12·a − 3
JDN = day + floor((153·m + 2) / 5) + 365·y + floor(y/4) − floor(y/100) + floor(y/400) − 32045
Adding a time component
JD = JDN + (hour − 12)/24 + minute/1440 + second/86400
At noon UTC the fractional part is 0, so JD = JDN exactly.
Derived quantities
| Quantity | Formula |
|---|---|
| Modified Julian Date (MJD) | JD − 2400000.5 |
| J2000 offset (days) | JD − 2451545.0 |
Worked example
Date: January 1, 2000 at 12:00:00 UTC (J2000 epoch)
- JDN = 2451545
- JD = 2451545.0 (noon)
- MJD = 51544.5
- J2000 = 0.0
Known reference points
| Date | JDN |
|---|---|
| Jan 1, 1970 (Unix epoch) | 2440588 |
| Jan 1, 2000 (J2000 epoch) | 2451545 |
| Jan 1, 2024 | 2460311 |
Notes
- The algorithm handles proleptic Gregorian dates (dates before the Gregorian calendar was adopted).
- Dates before October 15, 1582 were in the Julian calendar era; this converter uses the proleptic Gregorian formula for all dates.
Frequently asked
What is a Julian Day Number?
What is a Julian Date vs. a Julian Day Number?
What is the Modified Julian Date?
What is J2000?
Is this the same as the Julian calendar?
Related calculators
- Unix timestamp converter
Convert between Unix timestamps and human-readable dates.
- Date difference calculator
Find the exact number of days between two dates.
- Add or subtract days
Find a date a set number of days in the future or past.
- Week number calculator
ISO 8601 and US week numbers for any date.
- Moon phase calculator
Find the moon phase for any date using Julian Day arithmetic.