How to use the julian date converter
- Choose the conversion direction: Gregorian to Julian Date or Julian Date to Gregorian.
- For gregorian to julian date, enter the calendar date as
YYYY-MM-DDand an optional UT time asHH:MM. - For the reverse, enter the Julian Date number (for example
2451545.0). - Read the results instantly: JD, Modified Julian Date and ordinal day of year appear below.
How the Julian Date is calculated
The Julian Date counts days continuously from noon Universal Time on January 1, 4713 BC in the proleptic Julian calendar. The standard algorithm converts a Gregorian year Y, month M and day D (with fractional day) into a single number.
First, adjust January and February by treating them as months 13 and 14 of the previous year. Then compute:
A = floor(Y / 100)B = 2 - A + floor(A / 4)JD = floor(365.25 * (Y + 4716)) + floor(30.6001 * (M + 1)) + D + B - 1524.5
For the J2000.0 epoch (2000-01-01 at 12:00 UT): Y becomes 1999, M becomes 14, D is 1.5. A = 19, B = -13. The formula yields 2451545.0, which is the reference point for modern astronomy.
Reference values for common epochs
This table lists well-known moments and their corresponding Julian Date values. Use them to verify your own calculations or to calibrate a julian day calculator.
| Event | Gregorian date and time | Julian Date |
|---|---|---|
| J2000.0 epoch | 2000-01-01 12:00 UT | 2451545.0 |
| Unix epoch | 1970-01-01 00:00 UT | 2440587.5 |
| Modified JD zero | 1858-11-17 00:00 UT | 2400000.5 |
| GPS epoch | 1980-01-06 00:00 UT | 2444244.5 |
Julian Date versus day of year
The term "Julian date" is used in two different ways, which causes frequent confusion. In astronomy, it means the continuous day count described above. In logistics, manufacturing and food packaging, it often refers to the ordinal day of the year: January 1 is day 1, February 1 is day 32, and December 31 is day 365 (or 366 in leap years).
This julian date converter provides both values so you can use whichever definition your work requires. The ordinal date is labelled "Day of year" in the output to keep the distinction clear.
Modified Julian Date
The Modified Julian Date (MJD) simplifies record keeping by subtracting 2,400,000.5 from the full Julian Date. Its epoch is midnight on November 17, 1858. Because MJD values are smaller, they fit more easily into databases and spreadsheets while preserving sub-day precision.
MJD = JD - 2400000.5
For example, J2000.0 at JD 2451545.0 corresponds to MJD 51544.5. Many satellite tracking systems and observatory logs prefer MJD over the full JD.
Common mistakes to avoid
When performing a gregorian to julian date conversion, several pitfalls produce wrong results:
- Ignoring the noon start. Julian Dates begin at 12:00 UT, not midnight. A date entered as 2000-01-01 00:00 UT gives JD 2451544.5, not 2451545.0.
- Local time instead of UT. Always convert local times to Universal Time before entering them. This tool uses UTC arithmetic internally, but the input must already represent UT.
- Invalid calendar dates. February 29 only exists in leap years. The converter validates every date against the Gregorian calendar rules and rejects impossible combinations.
- Confusing Julian calendar with Julian Date. The Julian calendar is the older civil calendar replaced by the Gregorian reform in 1582. The Julian Date is a continuous astronomical count unrelated to that calendar system.
This tool uses the proleptic Gregorian calendar for every date, including those before the 1582 reform, in both directions. Historical records written in the Julian calendar need converting to Gregorian first.
If you need to shift a date forward or backward by a fixed span rather than convert it, a tool like add days to date may be more appropriate.
Worked examples
| Example | Input | Result |
|---|---|---|
| J2000.0 epoch | Direction: g2j; Date (YYYY-MM-DD): 2000-01-01; Time UT (HH:MM): 12:00 | Julian Date (JD): 2451545.0; Modified Julian Date: 51544.5; Day of year: 1; Gregorian date: 2000-01-01 12:00 UT |
| Unix epoch start | Direction: g2j; Date (YYYY-MM-DD): 1970-01-01; Time UT (HH:MM): 00:00 | Julian Date (JD): 2440587.5; Modified Julian Date: 40587.0; Day of year: 1; Gregorian date: 1970-01-01 00:00 UT |
| March equinox 2026 | Direction: g2j; Date (YYYY-MM-DD): 2026-03-20; Time UT (HH:MM): 14:46 | Julian Date (JD): 2461120.11528; Modified Julian Date: 61119.6152778; Day of year: 79; Gregorian date: 2026-03-20 14:46 UT |
| JD to Gregorian | Direction: j2g; Julian Date: 2451545 | Gregorian date: 2000-01-01 12:00 UT; Julian Date (JD): 2451545.0; Modified Julian Date: 51544.5; Day of year: 1 |
FAQ
What is a Julian Date?
A Julian Date is a continuous count of days and fractions since noon Universal Time on January 1, 4713 BC in the proleptic Julian calendar. Astronomers use it because it avoids the irregularities of months and leap years.
How do I convert a Gregorian date to a Julian Date?
Enter the calendar date in YYYY-MM-DD format and the UT time in HH:MM format. The converter applies the Meeus formula from Astronomical Algorithms (the floor(365.25 * (Y + 4716)) method shown in the article) and returns the JD, MJD and ordinal day of year.
Why does J2000.0 equal JD 2451545.0?
J2000.0 is defined as January 1, 2000 at exactly 12:00 Terrestrial Time, which aligns closely with 12:00 UT for this purpose. Running the Meeus formula for that moment produces 2451545.0, making it the standard reference epoch in modern astronomy.
What is the difference between JD and MJD?
The Modified Julian Date equals the Julian Date minus 2,400,000.5. It starts at midnight on November 17, 1858 and produces smaller numbers that are easier to store in computer systems.
Does this tool handle leap years correctly?
Yes. Every input date is validated against the full Gregorian leap year rules. February 29 is accepted only in years divisible by 4, except century years not divisible by 400.
Is my data sent to a server?
No. All calculations happen locally in your browser. Nothing is uploaded or stored.
Can I use this as a julian day calculator for ordinal dates?
Yes. When you convert a Gregorian date, the output includes the day of year (ordinal date), which is what many industries refer to as the Julian day or Julian date code.