Ordinal Day of Year (DDD) & Astronomical Julian Date (JD / MJD) Calculator

Convert Gregorian Year-Month-Day into Astronomical Julian Date (JD) and MJD.

Astronomical Julian Day Number (JDN) 2,461,333 JDN
Ordinal Day of Year (1–366) 292 day
Modified Julian Date (MJD) 61,332 MJD
Days Remaining in Year 73 days
Inputs
Try:
year
Four-digit Gregorian calendar year.
month (1–12)
Month of the year (1 = January to 12 = December).
day (1–31)
Day of the month (1 to 31).
Results & Graph
Astronomical Julian Day Number (JDN)
2,461,333 JDN
Ordinal Day of Year (1–366)
292 day
Modified Julian Date (MJD)
61,332 MJD
Days Remaining in Year
73 days

Astronomical Julian Day Number (JDN)

Graph 1 • How the inputs feed Julian & Ordinal Date
Ordinal Day of Year (DDD) & Astronomical Julian Date (JD / MJD) Calculator • Custom Domain Schematic (Calendar, Astronomical & Time) T_1T_2T_3T_4Chronological Span & Cadence (Julian & Ordinal Date) Calendar Year: 2.0k year • Calendar Month: 10 month (1–12) ASTRONOMICAL JULIAN DAY NU 2,461,333 JDN • Ordinal Day of Year (1: 292 day • Modified Julian Date (: 61,332 MJD Eq: a = floor((14−M)/12); y = Y+4800
Graph 2 • Astronomical Julian Day Number (JDN) as Calendar Year changes (40% to 160% of current)
0 JDN 1.60M JDN 3.20M JDN 984.5k 810.4year 1.48M 1.2kyear 2.31M 1.6kyear 2.46M 2.0kyear 2.61M 2.4kyear 2.76M 2.8kyear 2.91M 3.2kyear
Graph 3 • Calendar Year and Calendar Month together Compares Astronomical Julian Day Number (JDN) when Calendar Month is shifted +25% (solid) vs. −25% (dashed).
0 JDN 1.76M JDN 3.52M JDN --- Calendar Month @ 75% 1.72M -30% 2.09M -15% 2.46M +0% 2.83M +15% 3.20M +30%
Summary: Date 2026-10-19 is Ordinal Day 292 of 2026, JDN 2461333, and Modified Julian Date (MJD) 61332.
Summary: Date 2026-10-19 is Ordinal Day 292 of 2026, JDN 2461333, and Modified Julian Date (MJD) 61332.
Interactive chart & math engine powered by CalculatorGraph

Formula: Julian & Ordinal Date Formula

a = floor((14−M)/12)
y = Y+4800−a
m = M+12a−3
JDN = D + floor((153m+2)/5) + 365y + floor(y/4) − floor(y/100) + floor(y/400) − 32045
a = floor((14−M)/12); y = Y+4800−a; m = M+12a−3; JDN = D + floor((153m+2)/5) + 365y + floor(y/4) − floor(y/100) + floor(y/400) − 32045
  • calendarYear: Calendar Year (year)
  • calendarMonth: Calendar Month (month (1–12))
  • calendarDay: Calendar Day (day (1–31))

Frequently Asked Questions

How do I find the number of days between two dates?

Convert each date to a Julian Day Number and subtract the smaller from the larger. Because the JDN is a continuous count with no resets at month or year ends, the difference is the exact number of days between them. Leap years are already accounted for inside each JDN, so no extra correction is needed.

Why is the MJD a whole number when JD values end in .5?

JD days begin at noon, so the JD of midnight on any date ends in .5. MJD subtracts 2400000.5, which removes that half and starts each MJD day at midnight. The calculator shows the midnight value, 61,332 for the default date. Add a fraction of a day for a later time, such as 0.5 for noon.

How does the days remaining line handle leap years?

It subtracts the ordinal day from 366 in a leap year and from 365 otherwise, and does not count the date itself. For the leap day preset, 29 February 2028 is day 60, which leaves 306 days remaining. On 31 December of any year the figure is zero.

What does the calculator do with 31 February?

It refuses it. Dates that do not exist, such as 31 February, 31 April, 29 February in a common year, day 0 or month 13, return an error asking for a real Gregorian date. That stops a typo from producing a JDN that silently points to a different day in the following month.

Can I use it for dates in the Middle Ages?

No. The engine only accepts years after the Gregorian reform of the late sixteenth century, because earlier dates were written in the Julian calendar, which ran several days behind the Gregorian one. Applying Gregorian rules to them would give misleading day numbers. Convert old dates with a tool or table that handles the Julian calendar, or consult an astronomical reference.

How do I get the weekday from the Julian Day Number?

Add one to the JDN and divide by 7. The remainder gives the day, with 0 for Sunday, 1 for Monday, through 6 for Saturday. For the default 2,461,333, the remainder is 1, which matches 19 October 2026 being a Monday. This works for any date the formula covers.

Why does the same date have a different ordinal day in some years?

In leap years February has 29 days, which pushes every later date one day further into the year. In a common year like 2026, 19 October is day 292 of the year, and in a leap year it falls a day later. Dates in January and February keep the same ordinal day every year, including the leap day preset at day 60.

Does the calculator handle time of day or time zones?

No. It works with whole calendar dates only, and the JDN refers to noon Universal Time on that date. For a precise moment, convert your local time to Universal Time first, check whether that moves the date, then add the time as a fraction of a day to the MJD for midnight.

Is a Julian date on a food label the same as the JDN?

No. Labels and lot codes that say Julian date almost always mean the ordinal day of the year, a number from 1 to 366, often written after the year. The astronomical Julian Day Number for the same day is a seven digit count, 2,461,333 for the default date.

What happens if I type a two digit year?

The engine takes the year literally, so 26 means the year 26 and not 2026 as intended. Because that is long before the Gregorian reform, the calculator returns an error instead of a result. Always enter all four digits. The interpretation line repeats the year it used, which is a quick way to confirm nothing went wrong.

Why does the JDN formula shift the year to start in March?

Moving January and February to the end of the previous year puts the leap day at the very end of the counting year. The month term, built on 153, then only has to handle the regular run of 30 and 31 day months from March onward. That is why the formula adjusts both the year and the month before adding anything.

What range of MJD values should I expect for modern dates?

For recent dates the MJD is a five digit number in the tens of thousands: 51,544 on 1 January 2000, 61,332 on the default date and 61,830 on the 2028 leap day. Values grow by exactly one per day. A negative MJD would mean a date before the MJD starting point in the nineteenth century.

Four numbers for the default, 19 October 2026, explained

Load the page and it converts 19 October 2026 for you. The headline is the astronomical Julian Day Number, 2,461,333 JDN. Below it sit the ordinal day of the year, 292, the Modified Julian Date, 61,332, and the days remaining in the year, 73.

These four answer different questions. The ordinal day says how far into its own year a date is, and it resets on 1 January. The Julian Day Number counts days continuously across all years from a starting point thousands of years in the past, so it never resets and any two dates can be compared by subtraction. The Modified Julian Date is the same count with a large constant taken off to make the numbers shorter. Days remaining is the ordinal day seen from the other end.

Only three inputs feed all of this: year, month and day, in the Gregorian calendar. There is no time of day field, so every output describes a whole calendar day, and the MJD in particular is the value at midnight Universal Time at the start of that day.

Checking ordinal day 292 by hand

The ordinal day is simple to verify without the calculator. Add up the full months before the date and then add the day of the month. For 19 October 2026, that means January through September: 31, 28, 31, 30, 31, 30, 31, 31 and 30 days. Add 19 and you reach day 292 of the year.

The engine does it differently but gets the same answer. It works out the Julian Day Number of the date, works out the Julian Day Number of 1 January in the same year, subtracts, and adds one. Since both numbers come from the same formula, any error in the formula would cancel out, which makes this a sturdy method.

Leap years shift every date after February by one. The leap day preset, 29 February 2028, comes out as ordinal day 60: 31 days of January plus 29 of February. In a common year, 1 March would be day 60 instead. The leap year test is built into the JDN formula in the three terms that divide the shifted year by 400, by 100 and by 4. A year divisible by 4 is a leap year, unless it is divisible by 100, in which case it is not, unless it is also divisible by 400 as a century year. That is why the floor of y over 4 is added, the floor of y over 100 is taken away, and the floor of y over 400 is added back.

Common mistakes when checking by hand are forgetting that February is only 28 days in most years, and counting the day itself twice. Ordinal day 1 is 1 January, not the day after it.

What the 2,461,333 day count is for

The Julian Day Number is a single running count of days, used by astronomers, satellite operators and software that needs to do date arithmetic without dealing with months and leap years. Once two dates are converted to JDN, the number of days between them is just one minus the other.

The engine uses the standard integer formula shown on the page. It shifts the year to start in March, so that the awkward month of February falls at the end. The term with 153 handles the uneven month lengths from March onward, the 365 times y term adds whole years, the three leap terms add the extra days, and subtracting 32045 sets the zero point. For the default date this produces 2,461,333 as the day number.

The day count also gives the weekday. Add one to the JDN and take the remainder after dividing by 7. A remainder of 0 means Sunday, 1 Monday, and so on. For 2,461,333 the remainder is 1, and 19 October 2026 is indeed a Monday.

Astronomical JD is defined to start each day at noon, not midnight. The integer JDN therefore belongs to the moment at noon, Universal Time, on the calendar date you entered. A fractional JD, with the time of day added, would be 0.5 lower at the midnight that begins the date.

MJD 61,332 and the half day hidden in its definition

Modified Julian Date is defined as JD minus 2400000.5. The half day in that constant is there on purpose. Astronomical JD days start at noon, and the extra half moves the start of each MJD day back to midnight, so that a calendar date at midnight has a whole number MJD.

The integer JDN belongs to noon on the date, so the JD at the midnight that begins the date is half a day lower. Take 2400000.5 from that and you get a whole number. For 19 October 2026 the calculator shows MJD 61,332, which is the value at 00:00 Universal Time. That matches what tables, observatory logs and most software list as the MJD of a date.

For a particular moment, add the time as a fraction of a day: 0.25 for 06:00, 0.5 for noon, 0.75 for 18:00. Noon on the default date is therefore that figure plus one half, and that same moment is the integer JDN 2,461,333 in astronomical terms.

The J2000 preset gives a familiar check. On 1 January 2000 the JDN is 2,451,545 and the MJD is 51,544. Astronomers use noon on that date as a standard reference epoch, and the JD of that noon is the JDN itself, with no fraction.

Days remaining: 73 in 2026, 306 after a leap day

Days remaining is the year length minus the ordinal day. For 19 October 2026 that gives 73, and you can confirm it: 12 more days in October after the 19th, 30 in November and 31 in December. The count excludes the date itself, so on 31 December it shows zero.

The engine uses 366 as the year length in leap years. The leap day preset shows it: 29 February 2028 is day 60, and 366 minus 60 leaves 306 days remaining. Using 365 for that year would have given one day too few. On 1 January 2000, another leap year since 2000 is divisible by 400, the remaining figure is 365, because the year has 366 days and the first one is the date itself.

If you are counting down to a year end deadline, decide whether the deadline day counts. The calculator gives the number of days after today, which is what most countdowns mean, but a few contract and payroll rules include both ends.

Dates that do not exist are refused

The calculator checks that the date is real before converting it. Enter 31 February 2026, 31 April, a day of 0 or a month of 13 and it returns an error asking for a real Gregorian date instead of a number. The same applies to 29 February in a year that is not a leap year.

That check is useful when pasting dates from a spreadsheet or form where a typo slipped in. A quietly converted impossible date would give a JDN that looks valid but points to a different day, usually the first few days of the following month.

Whole numbers are expected in all three fields. If you have a date with a time attached, convert only the calendar part here and add the time to the MJD afterwards, as described above.

If an error appears for a date you are sure about, check the field order. Month comes before day, so 10 and 19 is 19 October, while 19 and 10 is a month that does not exist.

No years before the Gregorian reform

The formula uses the Gregorian calendar's leap year rules, and the engine only accepts years from the first full year after that calendar was introduced in the late sixteenth century. Earlier years return an error rather than a figure.

The reason is that dates before the reform were written in the older Julian calendar, which runs a number of days behind the Gregorian one for the same day. Converting a medieval date with Gregorian rules would give a JDN that does not match the historical record or astronomical tables. Even after the reform some countries kept the old calendar for a long time, so for dates from those places in the following centuries, check which calendar the source used before converting.

Going forward, the arithmetic keeps working for any year you enter. The leap day preset, 29 February 2028, gives JDN 2,461,831 and MJD 61,830, a date that only exists because 2028 is divisible by 4.

The year field is taken literally. Typing 26 instead of 2026 asks for a year before the reform, so the calculator now refuses it rather than returning a valid looking result for the wrong millennium.

Ordinal dates, Julian dates and the name confusion

In everyday business use, the phrase Julian date often means the ordinal day, not the astronomical count. Food packaging lot codes, warehouse labels, military date stamps and older mainframe systems frequently write a date as the year followed by a three digit day of year. In that style, 19 October 2026 is 2026 day 292, sometimes compressed to the last two digits of the year and then the day 292 itself.

Astronomers mean something else by Julian Date: the continuous count, which for the same day is 2,461,333 days. The two are not interchangeable, and mixing them up is one of the most common errors with this kind of date.

The calculator gives both, so check which one the system or document you are working with expects. As a rough guide, a value from 1 to 366 is an ordinal day, a seven digit number starting with 24 is an astronomical JD, and a five digit number in the tens of thousands is an MJD.

The ISO date standard also defines an ordinal date format, written as the four digit year, a hyphen and the three digit day, which keeps the leading zeros so that sorting works.