Calculation Number Of Days

Instant date span, business days & live distribution

Julian Day Number Converter

Convert a calendar date to or from its Julian day number.

Result
—

How the Julian Day Number Converter Works

The Julian Day Number Converter turns a calendar date into the Julian Day Number (JDN), a continuous count of days since 1 January 4713 BC in the Julian calendar.

  1. Enter a date

    Enter a Gregorian calendar date.

  2. Shift the year

    The formula treats January and February as months 13 and 14 of the previous year.

  3. Apply the integer formula

    The converter combines year, month and day terms into 1 integer.

  4. Read the JDN

    The result is the JDN for noon Universal Time (UT) on that date.

How the Count Is Calculated

The Julian Day Number formula for Gregorian dates uses integer division.

a = floor((14 − month) ÷ 12)
y = year + 4800 − a
m = month + 12a − 3
JDN = day + floor((153m + 2) ÷ 5) + 365y + floor(y ÷ 4) − floor(y ÷ 100) + floor(y ÷ 400) − 32045
JDN
Julian Day Number, an integer day count.
JD
Julian Date, JDN plus the fraction of the day since noon UT.
MJD
Modified Julian Date = JD − 2,400,000.5, starting 17 November 1858.

Example: 1 January 2000 has JDN 2,451,545. 4 December 2026 has JDN 2,461,379, which is 9,834 days later.

Worked Examples

The table lists Julian Day Numbers for reference dates.

Gregorian dateJDNNote
17 Nov 18582,400,001MJD 0 starts at midnight
1 Jan 19702,440,588Unix epoch
1 Jan 20002,451,545J2000 epoch
1 Jan 20262,461,042
4 Dec 20262,461,379
1 Jan 20272,461,407

What the Tool Measures

A Julian Day Number Converter is a tool that converts a calendar date into a single day count used by astronomers.

Joseph Scaliger proposed the Julian Period in 1583. The JDN removes months, years and calendar reforms, so the gap between 2 dates is a simple subtraction.

The JDN is not the same as the Julian calendar, and the JDN is not the day-of-year number some industries call a "Julian date".

When to Use This Tool

There are 4 main uses of the Julian Day Number Converter, including astronomy and software epochs.

  • Astronomy

    Astronomers time observations and variable-star cycles in JD.

  • Satellite tracking

    Orbit files use MJD timestamps.

  • Software conversion

    Developers convert between Unix time and JD (JD = Unix days + 2,440,587.5).

  • Historical spans

    Researchers measure gaps between ancient dates across calendar changes.