Home › Date & Time › Julian Date Calculator
Julian Date Calculator
Convert a calendar date into a Julian Date, Modified Julian Date and day-of-year code, or convert a Julian date back to a date.
The date and time are read as UTC. Years 1583 to 9999 are supported.
Enter a number such as 2451545 or 2460000.75. Up to 6 decimal places.
Julian Date (JD)
-
What is a Julian date?
"Julian date" has two common meanings, and this calculator handles both.
- Julian Date (JD) is a continuous count of days and fractions of a day, used in astronomy and science. JD 0 is noon UTC on 1 January 4713 BC.
- Julian date as day of year is a code of the year plus the day number, such as 2026305 (YYYYDDD) or 26305 (YYDDD). It is used on product labels, batch numbers and in some industries.
This is not the same as the old Julian calendar, which was replaced by the Gregorian calendar from 1582.
How the calculation works
JD = days since noon UTC on 1 January 4713 BC · MJD = JD − 2,400,000.5
- A Julian day starts at noon, so midnight UTC is always a number ending in .5, such as 2461345.5.
- The Modified Julian Date (MJD) starts at midnight UTC on 17 November 1858, which makes the numbers shorter.
- The Julian Day Number is the whole-number part used for a calendar date.
- The day-of-year code is the year followed by the day number from 001 to 365 or 366. For example, 1 November 2026 is day 305, so it is 2026305.
Examples
| Date and time (UTC) | JD | MJD | YYYYDDD |
|---|---|---|---|
| 1 Jan 2000, 12:00 | 2451545 | 51544.5 | 2000001 |
| 1 Jan 1970, 00:00 | 2440587.5 | 40587 | 1970001 |
| 29 Feb 2024, 06:00 | 2460369.75 | 60369.25 | 2024060 |
| 1 Nov 2026, 00:00 | 2461345.5 | 61345 | 2026305 |
Where is it useful?
- Astronomy, satellite and science data, which use JD or MJD.
- Reading and writing day-of-year codes on food, medicine and manufacturing labels.
- Working out the number of days between two events as a single subtraction.
- Converting dates in logs and data files that store Julian dates.
Things to keep in mind
- Dates and times are read as UTC. A different time zone can change the date.
- Dates are Gregorian calendar dates from 1 January 1583 to 31 December 9999.
- Results are rounded to 6 decimal places for JD and to the nearest second for dates.
- Some companies use their own rules for day-of-year codes, such as a different year format. Check the rule that applies to your product or system.
