Time calculators

Julian Date Calculator

Updated Nov 22, 2026 By Infinity Calculator Formulas Sources
Rate

Smart Quick Converter Ordinal Julian Date (yyddd): the 2-digit year plus 3-digit day-of-year shorthand used in manufacturing, food labelling, and logistics.

All calculations use the Gregorian calendar and UTC.
Accepts 07/11/2026, 11-Jul-2026, July 11, 2026, 2026-192, 26192, 26.192, today, +1 week, -3 days. Detection is automatic.
Result
Detected: —
Calendar Date (UTC) —
Ordinal Julian (yyddd) —
Ordinal Julian (yyyyddd) —
Day of the Week —
Progress Through the Year

Calendar Date → Julian Day Number Julian Day Number (JDN): a continuous count of days since noon UTC on January 1, 4713 BC.

Enter the moment in UTC. Fields are pre-filled with the current UTC date & time.
Era
Format HH:MM:SS.S
Calendar System Auto uses the Julian calendar up to Oct 4, 1582 and the Gregorian calendar from Oct 15, 1582 (the Papal reform). Julian Only forces the Julian calendar for every date.
Result
Julian Day Number (JDN) Continuous day count from noon UTC, January 1, 4713 BC. —
Modified Julian Date (MJD) MJD = JDN − 2,400,000.5. It is sometimes used for modern scientific data. —
Day of the Week —
Step-by-Step Solution

Julian Day Number → Calendar Date

The resulting time is expressed in UTC / UT1.
Decimal accepted to 6 places, e.g. 2461224.366563.
Calendar System Auto uses Julian before Oct 15, 1582 and Gregorian after. Julian Only always expresses the output in the Julian calendar.
Result
Calendar Date (with Era) —
Time (UT1) —
Day of the Week —
Modified Julian Date (MJD) MJD = JDN − 2,400,000.5. —

Two-Date JDN Interval

Whole-day JDN arithmetic in UTC. Edit any panel or the interval — the others recalculate on tab-out.
Panel A
Era
Calendar Auto: Julian ≤ Oct 4, 1582, Gregorian ≥ Oct 15, 1582. Julian Only forces Julian.
JDN —
Day of Week —
Positive = B after A; negative = B before A.
Panel B
Era
Calendar Auto: Julian ≤ Oct 4, 1582, Gregorian ≥ Oct 15, 1582. Julian Only forces Julian.
JDN —
Day of Week —

Introduction

A Julian date is a way to write any calendar date as a simple number. Instead of using a month and day, it counts the days in order from the start of the year, or from a fixed point in history. Scientists, farmers, food makers, and shipping companies all use Julian dates because they make it easy to track time and count the days between two events.

This Julian Date Calculator lets you convert dates in four ways. The Quick Converter reads almost any date format you type and instantly gives you the ordinal Julian date (the day-of-year number) or turns an ordinal code back into a regular calendar date. The Date → JDN tab converts any calendar date into an astronomical Julian Day Number (the continuous count of days since January 1, 4713 BC) and shows each math step so you can follow along.1 The JDN → Date tab does the reverse, turning a Julian Day Number back into a calendar date and time. The Date Interval tab finds the exact number of days between two dates using their Julian Day Numbers.

Julian dates are counted in Universal Time (UT1).1 UT1 follows the rotation of the Earth, and UTC, the basis for civil time, is not allowed to differ from UT1 by more than 0.9 second.6 The calculator takes and shows times in UTC and treats them as UT1. The Date → JDN, JDN → Date and Date Interval tabs support both the Julian and Gregorian calendars and handle dates across thousands of years. The Quick Converter uses the Gregorian calendar for every date. Enter a date below to get started.

How to Use Our Julian Date Calculator

Enter a calendar date, an ordinal Julian date, or a Julian Day Number and this calculator will convert it for you. It can also find the number of days between two dates. Results include the Julian Day Number (JDN), ordinal Julian date, Modified Julian Date (MJD), and the day of the week.

Quick Converter Tab: Type any date into the input box. You can use formats like 07/11/2026, 11-Jul-2026, July 11 2026, or an ordinal code like 26192 or 2026-192. You can also type "today," "+1 week," or "-3 days" for quick relative dates. Press "Calculate" to see the calendar date, ordinal Julian date, day of the week, and a chart showing how far through the year that date falls.

Date → JDN Tab: Pick an era (AD or BC), then enter a year, month, and day. Set the time in HH:MM:SS.S format if you need a precise result, or enter 00:00:00.0 for midnight. Choose "Auto" for the calendar system to let the tool switch between Julian and Gregorian at the 1582 reform, or pick "Julian Only" to force the Julian calendar. Press "Calculate" to get the Julian Day Number, Modified Julian Date, day of the week, and a full step-by-step solution.

JDN → Date Tab: Enter a Julian Day Number in the input box. Decimals up to six places are accepted for a time-of-day result. Choose your calendar system, then press "Calculate." The tool will return the matching calendar date, time in UTC, day of the week, and Modified Julian Date. If you need to work across different time zones, remember to convert your local time to UTC before entering it.

Date Interval Tab: Fill in a date in Panel A using the era, year, month, and day fields. Then either enter a date in Panel B or type a number of days in the "Days Later" box. Press "Calculate" and the tool will find the JDN for both dates and show the exact number of days between them. A positive interval means Panel B is after Panel A. A negative number means Panel B is before Panel A.

What Is a Julian Date?

A Julian date is a way to write a calendar date as a simple number. There are two main types, and they are used for very different reasons.

Ordinal Julian Date (Day of the Year)

An ordinal Julian date counts how many days have passed in the current year. January 1 is day 1, February 1 is day 32, and so on up to day 365 (or 366 in a leap year). It is often written as a 5-digit code like 26192, where "26" is the year and "192" is the day number. You will see this format on food packages, medicine labels, and shipping boxes. It tells you when a product was made without using a full date.

Julian Day Number (JDN)

A Julian Day Number is a running count of days that started at noon Universal Time on January 1, 4713 BC, in the Julian calendar.1 Today's JDN is in the millions. Scientists, astronomers, and historians use it because it labels every day in history with one whole number.5 This makes it easy to find the exact number of days between any two dates, even dates thousands of years apart. Strictly, the Julian Day Number is the whole number that labels a day, and the count with the time of day added as a decimal fraction is called the Julian date.5 The results on this page show that decimal value, such as 2461232.500000 for midnight at the start of July 11, 2026. The Modified Julian Date (MJD) is a shorter version. You get it by subtracting 2,400,000.5 from the Julian date.1

Julian Calendar vs. Gregorian Calendar

The Julian calendar was introduced by Julius Caesar in 46 BC.2 It used a simple leap year rule: one leap day every fourth year. That made the average calendar year 365.25 days long, a little longer than the cycle of the seasons, so the calendar slowly drifted.2 When Pope Gregory XIII brought in the Gregorian calendar in 1582, the new rule put 97 leap days in every 400 years.2 The switch skipped ten calendar days: Thursday, October 4, 1582 in the Julian calendar was followed by Friday, October 15, 1582 in the Gregorian calendar.1 Not every country changed then, and England and its colonies did not switch until September 1752.1

How to Convert a Date to a Julian Day Number

The conversion uses a math formula that accounts for years, months, and the calendar system. First, you adjust the month and year. If the month is January or February, you subtract 1 from the year and add 12 to the month. Next, you calculate a correction term if the date falls in the Gregorian calendar.5 Finally, you plug everything into the formula to get the JDN. The calculator on this page does all of this work for you instantly.

Common Uses of Julian Dates

  • Food and medicine: Lot codes on packaging often use the ordinal format (yyddd) to mark production dates.
  • Astronomy: Astronomers use JDN to time events like eclipses, planet positions, and satellite passes.
  • Military and government: The U.S. military uses ordinal dates in reports and logistics, often alongside military time for precise record-keeping.
  • Computing: Some databases, such as SQLite, can store a date as a Julian day number, a single number that is easy to sort and compare.
  • Logistics and shipping: Companies use ordinal Julian dates to schedule production and delivery.

Formulas used

Julian Date (JD) 4
JD = \lfloor 365.25\,(y + 4716) \rfloor + \lfloor 30.6001\,(m + 1) \rfloor + D + B - 1524.5
Gregorian calendar correction (B) 4
A = \lfloor y / 100 \rfloor, \quad B = 2 - A + \lfloor A / 4 \rfloor
Day with time fraction
D = d + \frac{h \times 3600 + \text{min} \times 60 + s}{86400}
Modified Julian Date (MJD) 1
MJD = JD - 2400000.5
Day of the week from JDN 1
\text{index} = \bigl(\lfloor JD + 0.5 \rfloor + 1\bigr) \mod 7
Astronomical year for BC dates 5
Y_{\text{astro}} = 1 - Y_{\text{BC}}

Frequently asked questions

What is the difference between a Julian Day Number and an ordinal Julian date?

An ordinal Julian date is the day-of-year number, from 1 to 365 (or 366 in a leap year). For example, July 11 is day 192 in a common year and day 193 in a leap year. A Julian Day Number (JDN) is a much bigger number that counts every day since January 1, 4713 BC.1 They are two different systems. The Quick Converter tab works with ordinal dates, and the Date → JDN tab works with Julian Day Numbers.

How do I read a 5-digit Julian date code on a food package?

The first two digits are the year and the last three digits are the day of the year. For example, 26192 means the 192nd day of 2026, which is July 11, 2026. Type the 5-digit code into the Quick Converter tab and press Calculate to see the full calendar date.

What is a Modified Julian Date (MJD)?

The Modified Julian Date is a shorter version of the Julian date. You get it by subtracting 2,400,000.5 from the Julian date (JD).1 Scientists and engineers use MJD because the numbers are smaller and easier to work with in modern datasets.

How do I find how many days are between two dates?

Use the Date Interval tab. Enter a date in Panel A and a date in Panel B, then press Calculate. The tool will show the exact number of days between them. A positive number means Panel B is after Panel A. A negative number means Panel B is before Panel A.

What does the decimal part of a Julian date mean?

The decimal part represents the time of day. A fraction of 0.5 means midnight, and a whole number means noon.1 For example, 2461232.500000 is midnight on July 11, 2026, and 2461232.750000 is 6:00 AM UTC on the same day.

Why does the Julian Day start at noon instead of midnight?

Astronomers chose noon as the starting point so that a single night of observation would fall within one Julian Day. If the day started at midnight, an observing session would be split across two day numbers, which would make record-keeping harder.

How do two-digit years work in ordinal Julian dates?

When you enter a 5-digit ordinal code like 26192, the calculator reads the first two digits as the year. Years 00–68 are treated as 2000–2068, and years 69–99 are treated as 1969–1999. This matches the POSIX standard's rule for two-digit years.3


Sources

  1. Julian Date Converter. U.S. Naval Observatory, Astronomical Applications Department. Notes. Accessed September 29, 2026.
  2. Leap Years. U.S. Naval Observatory, Astronomical Applications Department. Background. Accessed September 29, 2026.
  3. strptime: date and time conversion (The Open Group Base Specifications Issue 8, IEEE Std 1003.1-2024). The Open Group. 2024;%y conversion. Accessed September 29, 2026.
  4. NOAA Solar Calculator program code (main.js). NOAA Global Monitoring Laboratory. functions getJD, calcGeomMeanLongSun, calcSunEqOfCenter, calcSunApparentLong. Accessed October 10, 2026.
  5. Richards EG. Calendars. Explanatory Supplement to the Astronomical Almanac, 3rd edition. U.S. Naval Observatory. Table 15.1 note a, p. 587; Sections 15.1.9 and 15.1.10, pp. 591-592; Section 15.11.3, Algorithm 3, pp. 618-619. Accessed November 22, 2026.
  6. Universal Time. U.S. Naval Observatory, Astronomical Applications Department. Accessed November 22, 2026.