Skip to main content
ponderloop

Julian Date Converter: Date to JD, MJD and YYDDD

"Julian date" means two different things. In manufacturing, food packaging and the military it is the ordinal date: the year plus the day of the year, written YYDDD or YYYYDDD, so January 1, 2000 is 00001 or 2000001. In astronomy it is a running count of days since noon UTC on January 1, 4713 BC: Julian Date 2451545.0 is January 1, 2000 at 12:00 UTC, and the Modified Julian Date (MJD, which is JD minus 2400000.5) for that moment is 51544.5. Enter a date and optional UTC time for both, or paste an ordinal date, JD or MJD such as 24366 (Tuesday, December 31, 2024) to turn it back into a calendar date.

Updated Runs in your browser: nothing you enter is uploadedHow this tool works

Date to Julian date

Years 1 to 9999. Leave the time blank for 00:00 UTC. Nothing you enter leaves your browser.

Result

JD 2451545.0

January 1, 2000 at 12:00:00 UTC is Julian Date 2451545.0 (Modified Julian Date 51544.5). As an ordinal Julian date it is 00001 (YYDDD) or 2000001 (YYYYDDD): day 1 of 2000.

Calendar date and time (UTC)
2000-01-01 12:00:00
Weekday
Saturday
Ordinal date, YYDDD
00001
Ordinal date, YYYYDDD
2000001
Day of the year
1
Julian Date (JD)
2451545.0
Modified Julian Date (MJD)
51544.5
Julian Day Number (JDN) of the calendar day
2451545

Julian date to calendar date

Five digits (year and day of the year, like 24366) or seven digits (like 2024366). A two-digit year of 00 to 68 means 20xx and 69 to 99 means 19xx.

Result

Tuesday, December 31, 2024

Ordinal date 24366 is December 31, 2024: day 366 of 2024.

Calendar date and time (UTC)
2024-12-31 00:00:00
Weekday
Tuesday
Ordinal date, YYDDD
24366
Ordinal date, YYYYDDD
2024366
Day of the year
366
Julian Date (JD)
2460675.5
Modified Julian Date (MJD)
60675.0
Julian Day Number (JDN) of the calendar day
2460676
  • An ordinal date has no time of day, so the Julian Date and Modified Julian Date below are for 00:00 UTC that day.
  • A five-digit date has only two year digits, so 20xx was assumed (00 to 68 mean 20xx, 69 to 99 mean 19xx). Use seven digits (YYYYDDD) to choose the century yourself.

The two meanings of "Julian date"

The examples are for the moment in the converter above: January 1, 2000 at 12:00 UTC.
NameWhat it countsLooks likeWhere it is used
Ordinal date (YYDDD, YYYYDDD)The day of the year, from 001 to 365 or 36600001 or 2000001Date codes on food and goods, military and government records, older computer systems
Julian Date (JD)Days and a fraction of a day since noon UTC, January 1, 4713 BC2451545.0Astronomy, satellite and observation records
Modified Julian Date (MJD)Days since midnight UTC, November 17, 1858 (JD minus 2400000.5)51544.5Space agencies, time and frequency labs, scientific data
Julian Day Number (JDN)The whole number of the day, which starts at noon UTC2451545Calendar arithmetic and conversions between calendars

Famous moments as Julian dates

Computed by the converter, with a time of 00:00 UTC unless a time is given. Dates before October 15, 1582 are read as proleptic Gregorian dates.
MomentDate and time (UTC)JDMJDYYYYDDD
Gregorian calendar begins (first day, Catholic Europe)1582-10-15 00:002299160.5−100840.01582288
MJD epoch (MJD 0)1858-11-17 00:002400000.50.01858321
Unix epoch1970-01-01 00:002440587.540587.01970001
GPS epoch1980-01-06 00:002444244.544244.01980006
J2000.0 (noon)2000-01-01 12:002451545.051544.52000001
Start of 20252025-01-01 00:002460676.560676.02025001

Day of the year at the start of each month

The DDD part of a YYDDD date. After February in a leap year, every day number is one higher.
MonthFirst day (common year)First day (leap year)Last day (common year)Last day (leap year)
January001001031031
February032032059060
March060061090091
April091092120121
May121122151152
June152153181182
July182183212213
August213214243244
September244245273274
October274275304305
November305306334335
December335336365366

How to convert a date to a Julian date

  1. Enter the calendar date and time. Pick the date and, for an astronomical Julian Date, a time in UTC. A blank time means 00:00. The example is 2000-01-01 at 12:00:00 UTC.
  2. Read the ordinal date. Use the YYDDD or YYYYDDD row for date codes: the year, then the day of the year with leading zeros. For the example that is 00001 or 2000001.
  3. Read the astronomical Julian Date. The JD row counts days since noon UTC on January 1, 4713 BC, and the MJD row is JD minus 2400000.5. For the example JD is 2451545.0 and MJD is 51544.5.
  4. Convert back from a Julian date. In the second box choose Ordinal date, Julian Date or Modified Julian Date, paste the value, and the calendar date appears with all the other forms. 24366 is Tuesday, December 31, 2024.

Frequently asked questions

What is a Julian date?
It depends on who is asking. In manufacturing, food, pharmaceutical and military use, a Julian date is the year and the day of the year (YYDDD or YYYYDDD), which has nothing to do with the Julian calendar. In astronomy the Julian Date (JD) is a continuous count of days since noon UTC on January 1, 4713 BC, introduced by Joseph Scaliger and named for his father, Julius Caesar Scaliger, and not for the Julian calendar. This page converts both.
How do I read a Julian date code like 24366 on a package?
The first two digits are the year and the last three are the day of the year: 24366 is Tuesday, December 31, 2024, the day 366 of the leap year 2024. A seven-digit code such as 2024366 spells out the year. Some makers use a single year digit (YDDD) or the last digit of the year and a letter, which this converter does not decode.
What is the Julian Date of January 1, 2000?
Noon UTC on January 1, 2000 is JD 2451545.0, which is the J2000.0 reference epoch of modern astronomy (the epoch itself is defined in Terrestrial Time, which is about 64 seconds ahead of UTC). Midnight at the start of that day is JD 2451544.5, and its Modified Julian Date is 51544.0.
What is the Modified Julian Date?
MJD = JD − 2400000.5. It starts counting at midnight UTC on November 17, 1858 (MJD 0), which is JD 2400000.5, and it has fewer digits, so it fits in smaller fields. The Unix epoch, January 1, 1970, is MJD 40587.0. Dates before 1858 have a negative MJD.
Why does the Julian day start at noon?
Astronomers observe at night, and a day that changes at noon never changes in the middle of a night of observing. So JD 2451545.0 is noon, a .5 is midnight, and the Julian Day Number of a calendar day is the JD at that day’s noon. The Modified Julian Date moved the start back to midnight, which suits clocks and calendars.
How does it treat dates before 1582?
All dates are read as proleptic Gregorian dates: the Gregorian rules extended backwards, as ISO 8601 does. The Gregorian calendar began on October 15, 1582, and earlier historical dates were written in the Julian calendar, which differs by days (10 days in 1582). Many astronomy programs switch to the Julian calendar before October 15, 1582 instead; for a historical date, convert it to Gregorian first. The supported range is the years 1 to 9999: JD 1721425.5 to 5373484.499988.
Is the time UTC, TT or UT1?
The converter reads and shows UTC with every day exactly 86,400 seconds long, so leap seconds are ignored. Strictly, astronomers state a time scale with a Julian Date: J2000.0 is JD 2451545.0 in Terrestrial Time (TT), which is 11:58:55.816 UTC. For dates with second accuracy in a precise time scale, convert the time scale first.
What happens to a two-digit year in YYDDD?
A five-digit ordinal date has no century, so the converter assumes 00 to 68 mean 2000 to 2068 and 69 to 99 mean 1969 to 1999 (the same rule POSIX uses for %y). Enter seven digits, such as 1999365, to choose the century.

How it works

A calendar date becomes a Julian Day Number with the integer algorithm of Fliegel and Van Flandern (1968), and a Julian Day Number becomes a date with its inverse; both are exact for the Gregorian calendar. A moment is stored as the Julian Date times 86,400, a whole number of seconds, so there is no floating-point rounding: the digits shown are produced from that integer by long division, rounded to six decimals (about 0.09 seconds) with trailing zeros dropped. A JD or MJD you type is read as text, also exactly, and rounded to the nearest second. JD is JDN − 0.5 plus the time since midnight, and MJD is JD − 2400000.5. The day of the year is the difference of two Julian Day Numbers plus one, and YYDDD or YYYYDDD pads it to three digits. The weekday is (JDN + 1) mod 7. Every one of the 3.65 million days from the year 1 to 9999 is checked in the tests against an independent day-count and round-trips. The calendar is proleptic Gregorian for all dates, including those before October 15, 1582, and the time is UTC with 86,400-second days. Everything runs in your browser; the dates and numbers you enter are never sent anywhere.

Sources

All dates & timeAll toolsHome & DIY calculators