Astronomy · Converter

Julian Day Converter

Convert between a UTC date and time and the astronomical Julian Date (JD), Julian Day Number (JDN) and Modified Julian Date (MJD).

Looking for the day of the year instead? Today is day 339 of 2026 (2026339). Use the day-of-year converter.

Julian Day today

Julian Day Number
2461380
JD at 00:00 UTC
2461379.5
JD now (approx.)
2461379.535
MJD at 00:00 UTC
61379.0

For Saturday, December 5, 2026 (UTC). The home page shows the JD ticking to the second.

Convert JD / MJD ⇄ date

Enter a calendar date
Calendar date
Julian date (day-of-year)
Astronomical
Julian Date (JD)
Modified JD (MJD)
Julian Day Number
—

Click or tap any result to copy it.

Julian Date, precisely defined

The Julian Date is the number of days, with fractions, since 12:00 UT on January 1, 4713 BC in the proleptic Julian calendar (November 24, 4714 BC in the proleptic Gregorian calendar). It gives every instant a single number, so the time between two events is a subtraction, with no months or leap years to reconcile.

JD, JDN and MJD at a glance

ValueWhat it isJuly 21, 2026, 18:00 UTC
Julian Day Number (JDN)Whole number for the calendar date; the JD at noon UTC2461243
Julian Date (JD)JDN plus the time since noon, as a fraction of a day2461243.25
Modified Julian Date (MJD)JD − 2400000.5; starts at midnight61242.75

The common mistake is to take the JD at midnight as the day’s number. At 00:00 UTC the JD is 2461242.5, half a day before the JDN of that date. Rounding a JD down changes the result at noon; rounding JD + 0.5 down gives the JDN of the UTC calendar date.

How to calculate the Julian Day Number

For a Gregorian date, this integer formula (all divisions round down) gives the JDN directly:

Date: July 21, 2026   (Y = 2026, M = 7, D = 21)

a = (14 - M) div 12            = 0
y = Y + 4800 - a               = 6826
m = M + 12a - 3                = 4

JDN = D + (153m + 2) div 5 + 365y + y div 4 - y div 100 + y div 400 - 32045
    = 21 + 122 + 2491490 + 1706 - 68 + 17 - 32045
    = 2461243

Add the time of day to get the Julian Date:

JD = JDN + (hour - 12) / 24 + minute / 1440 + second / 86400

July 21, 2026 at 00:00 UTC   2461243 - 0.5    = 2461242.5
July 21, 2026 at 18:00 UTC   2461243 + 0.25   = 2461243.25

From a Unix timestamp, which is already in UTC, it is one line:

JD  = Unix seconds / 86400 + 2440587.5
MJD = Unix seconds / 86400 + 40587

Ready-made functions for both directions are on the code pages for Python, JavaScript, SQL, Excel and Java and C#.

Reference values

MomentJulian Date
Start of the count: Jan 1, 4713 BC, 12:00 (Julian calendar)0.0
First day of the Gregorian calendar: Oct 15, 1582, 00:002299160.5
MJD epoch: Nov 17, 1858, 00:002400000.5
Excel day 0: Dec 30, 1899, 00:002415018.5
Unix epoch: Jan 1, 1970, 00:00 UTC2440587.5
J2000.0: Jan 1, 2000, 12:00 TT2451545.0

The Julian day-count family

ScaleDefinitionEpoch
Julian Date (JD)—4713 BC Jan 1, 12:00 UT
Modified JD (MJD)JD − 2400000.51858 Nov 17, 00:00
Reduced JDJD − 24000001858 Nov 16, 12:00
Truncated JD (TJD)⌊JD − 2440000.5⌋1968 May 24, 00:00
Dublin JD (DJD)JD − 24150201899 Dec 31, 12:00
CNES JDJD − 2433282.51950 Jan 1, 00:00
Lilian dateJDN − 22991601582 Oct 15 = day 1
Rata DieJDN − 1721425AD 1 Jan 1 (Gregorian) = day 1

Definitions of each are in the glossary; the MJD has its own page and converter.

Accuracy

Conversions use the algorithms in Jean Meeus, Astronomical Algorithms (2nd ed., chapter 7), verified against reference epochs including J2000.0 (JD 2451545.0) and the Modified Julian Date epoch. The tool applies the Julian calendar before the 1582 Gregorian reform and rejects the ten omitted dates. Inputs are read as civil UTC on the JavaScript/Unix time model, which does not represent leap seconds. That suits ordinary conversion, but it is not interchangeable with JD(UT1), JD(TT) or BJD(TDB) in precision astronomy: JD(TT) currently runs about 69 seconds (0.0008 day) ahead of JD(UTC).

For observatory-grade timing, state the time scale alongside the number and use Earth-orientation and leap-second data from an authoritative service. See the U.S. Naval Observatory definition and converter.

Related

Frequently asked questions

What is the Julian Day Number today?

The Julian Day Number for today's UTC date is shown in the "Julian Day today" panel on this page and updates every day. It is a seven-digit number of about 2.46 million. The Julian Date at this moment is that number plus or minus a fraction of a day, because the Julian day starts at noon UTC.

What is the difference between Julian Date and Julian Day Number?

The Julian Day Number (JDN) is a whole number given to each calendar day; it is the Julian Date at noon UTC of that day. The Julian Date (JD) adds the time as a fraction, so midnight UTC is JDN − 0.5 and 18:00 UTC is JDN + 0.25.

Is the Julian day the same as the day of the year?

No. The astronomical Julian Day is a count of days since 4713 BC, a number of about 2.46 million. The day of the year (1 to 366) is what labels and many business systems call the "Julian date". Use the day-of-year converter for that.

How do I calculate the Julian Day Number by hand?

With integer division: a = (14 − month) div 12, y = year + 4800 − a, m = month + 12a − 3, then JDN = day + (153m + 2) div 5 + 365y + y div 4 − y div 100 + y div 400 − 32045. This is for Gregorian dates. July 21, 2026 gives 2461243.

Why does the Julian Day start at noon?

Astronomers observed at night and did not want the date to change in the middle of an observing session. Starting each day at noon UTC keeps a whole night in Europe within one Julian Day. The Modified Julian Date moved the start back to midnight.

How do I find the day of the week from a Julian Day Number?

Take JDN mod 7: 0 is Monday, 1 Tuesday, and so on to 6 for Sunday. 2461243 mod 7 = 1, and July 21, 2026 is a Tuesday.

Does this converter handle dates before 1582?

Yes. It follows the astronomical convention: dates on or after October 15, 1582 use the Gregorian calendar and earlier dates the Julian calendar, so the day count is continuous across the reform. October 5 to 14, 1582 do not exist in that scheme and are rejected.