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
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
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"
| Name | What it counts | Looks like | Where it is used |
|---|---|---|---|
| Ordinal date (YYDDD, YYYYDDD) | The day of the year, from 001 to 365 or 366 | 00001 or 2000001 | Date 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 BC | 2451545.0 | Astronomy, satellite and observation records |
| Modified Julian Date (MJD) | Days since midnight UTC, November 17, 1858 (JD minus 2400000.5) | 51544.5 | Space agencies, time and frequency labs, scientific data |
| Julian Day Number (JDN) | The whole number of the day, which starts at noon UTC | 2451545 | Calendar arithmetic and conversions between calendars |
Famous moments as Julian dates
| Moment | Date and time (UTC) | JD | MJD | YYYYDDD |
|---|---|---|---|---|
| Gregorian calendar begins (first day, Catholic Europe) | 1582-10-15 00:00 | 2299160.5 | −100840.0 | 1582288 |
| MJD epoch (MJD 0) | 1858-11-17 00:00 | 2400000.5 | 0.0 | 1858321 |
| Unix epoch | 1970-01-01 00:00 | 2440587.5 | 40587.0 | 1970001 |
| GPS epoch | 1980-01-06 00:00 | 2444244.5 | 44244.0 | 1980006 |
| J2000.0 (noon) | 2000-01-01 12:00 | 2451545.0 | 51544.5 | 2000001 |
| Start of 2025 | 2025-01-01 00:00 | 2460676.5 | 60676.0 | 2025001 |
Day of the year at the start of each month
| Month | First day (common year) | First day (leap year) | Last day (common year) | Last day (leap year) |
|---|---|---|---|---|
| January | 001 | 001 | 031 | 031 |
| February | 032 | 032 | 059 | 060 |
| March | 060 | 061 | 090 | 091 |
| April | 091 | 092 | 120 | 121 |
| May | 121 | 122 | 151 | 152 |
| June | 152 | 153 | 181 | 182 |
| July | 182 | 183 | 212 | 213 |
| August | 213 | 214 | 243 | 244 |
| September | 244 | 245 | 273 | 274 |
| October | 274 | 275 | 304 | 305 |
| November | 305 | 306 | 334 | 335 |
| December | 335 | 336 | 365 | 366 |
How to convert a date to a Julian date
- 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.
- 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.
- 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.
- 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
- Julian day, Wikipedia
- Fliegel, H. F. and Van Flandern, T. C. "A machine algorithm for processing calendar dates", Communications of the ACM 11(10), 657 (1968)
- Modified Julian Dates, NASA GSFC Time Services
- J2000: Julian Date 2451545.0 is 2000 January 1.5, NASA NAIF SPICE toolkit
- Gregorian calendar and its adoption, Wikipedia
More free tools
- Day of the Week CalculatorFind out what day of the week any date falls on, from year 1 to 9999. Shows the ISO week, the nth weekday of the month, and a Doomsday-rule mental method.
- Unix Timestamp ConverterConvert a Unix timestamp to a date and a date to a timestamp. Seconds to nanoseconds, any time zone, plus a live counter of the current Unix time.
- Moon Phase CalculatorSee the Moon’s phase, illuminated fraction and age for any date and time, the next new moon, quarters and full moon, and a month calendar with phase icons.
- Sunrise and Sunset CalculatorSunrise, sunset, solar noon, day length and civil, nautical and astronomical twilight for any place and date, using NOAA equations. Handles polar day.
- Hours CalculatorAdd up hours and minutes (7:45, 2h 30m, 1.5) into a total in h:mm, decimal hours and minutes. Subtract, multiply or divide durations too.
- Decimal Hours ConverterConvert hours and minutes to decimal hours and back (7:45 = 7.75), with a 1-60 minute table and payroll rounding to 15, 6 or 5 minutes.