Julian Day Number Converter
Convert any Gregorian calendar date and time to the astronomical Julian Day Number and Julian Date, or convert back from a Julian Date.
Direction
h
min
s
Whole-day count since noon UT on 1 January 4713 BC (proleptic Julian)
- 1
Intercalary term
a = ⌊(14 − 1) ÷ 12⌋ = 1 - 2
Adjusted year
yy = 2,000 + 4800 − 1 = 6,799 - 3
Adjusted month
mm = 1 + 12 × 1 − 3 = 10 - 4
Julian Day Number
1 + ⌊(153 × 10 + 2) ÷ 5⌋ + 365 × 6,799 + ⌊6,799 ÷ 4⌋ − ⌊6,799 ÷ 100⌋ + ⌊6,799 ÷ 400⌋ − 32045 = 2,451,545Fliegel–Van Flandern algorithm — pure integer arithmetic.
How does this calculator work?
The Julian Day Number is the integer count of days since noon on 1 January 4713 BC, and the Julian Date adds a fractional time of day (the day flips at noon). This converter turns any Gregorian date and UT time into JDN, JD, and Modified Julian Date, and converts a Julian Date back to a Gregorian date.
Formula
How this is calculated
The Julian Day Number (JDN) is a continuous count of whole days starting from noon Universal Time on 1 January 4713 BC in the proleptic Julian calendar. Because it has no months, leap years, or calendar reforms, astronomers use it to compute time intervals between events spanning centuries. The Julian Date (JD) extends this with a fractional part for the time of day, where the integer flips at noon rather than midnight (so JD = ...".0" corresponds to 12:00 UT).
For a Gregorian-to-Julian conversion the tool reads the year, month, day, and the hour, minute and second in Universal Time. It applies the Fliegel–Van Flandern integer formula: an intercalary term a shifts January and February into the previous year, after which fixed multipliers count whole years and the 4/100/400 leap-year cycle of the Gregorian calendar, and the constant 32045 anchors the epoch. The fractional Julian Date then adds (hour − 12)/24 + minute/1440 + second/86400 because the day boundary is noon. The Modified Julian Date (MJD = JD − 2400000.5) re-zeros the count to midnight on 17 November 1858 and is common in space-flight and satellite data.
For the reverse direction the tool takes a (possibly fractional) Julian Date, sets JDN = ⌊JD + 0.5⌋ to recover the civil day, derives the time of day from the remaining fraction, and reconstructs the Gregorian year, month and day with the inverse Richards algorithm. Years use the astronomical convention where 1 BC is year 0 and 2 BC is −1. All times are treated as Universal Time, seconds are rounded to the nearest whole second, and dates before the 1582 Gregorian reform are handled on the proleptic Gregorian calendar.
Frequently asked questions
The Julian Day Number (JDN) is an integer: the count of whole days since the epoch. The Julian Date (JD) adds a decimal fraction for the time of day. Both count from noon, so JD 2451545.0 is exactly noon UT on 1 January 2000 (the J2000.0 epoch).
The convention dates to astronomers who observed at night and wanted a single date label for an entire night without a midnight rollover. Starting the day at noon keeps a night-long observing session on one Julian Day number.
MJD = JD − 2400000.5. Subtracting 2,400,000.5 shortens the number and shifts the day boundary to midnight on 17 November 1858, which is convenient for modern satellite, geodesy, and timekeeping data.
Also known as
TG we-Calculate Editorial Team. (2026). Julian Day Number Converter [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/julian-day-number-converter
TG we-Calculate Editorial Team. "Julian Day Number Converter." TG we-Calculate. 2026. https://we-calculate.com/calculator/julian-day-number-converter.
TG we-Calculate Editorial Team, "Julian Day Number Converter," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/julian-day-number-converter
@misc{wecalculate_julian_day_number_converter, title = {Julian Day Number Converter}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/julian-day-number-converter}}, year = {2026}, note = {TG we-Calculate} }
Did this calculator help you?
