Julian Date Converter

Convert between calendar dates, Julian Day Numbers and YYDDD dates.

Julian Date Converter tool

Convert
—
Result
—
Julian Date
—
Modified Julian Date
—
Ordinal date (YYDDD · YYYYDDD)

About the Julian Date Converter

Julian date means different things to different people. Astronomers count days continuously as the Julian Day Number, while food manufacturers, pharmacies and the military print ordinal dates such as YYDDD on labels and batch codes. This Julian date converter handles both: 26 October 2026 is Julian Day Number 2,461,340 and ordinal date 26299, the 299th day of 2026.

The Julian Day Number of a Gregorian date is found with the Fliegel–Van Flandern formula: with a = ⌊(14 − month) ÷ 12⌋, y = year + 4800 − a and m = month + 12a − 3, JDN = day + ⌊(153m + 2) ÷ 5⌋ + 365y + ⌊y ÷ 4⌋ − ⌊y ÷ 100⌋ + ⌊y ÷ 400⌋ − 32045. The Julian Date adds (hours − 12) ÷ 24, because astronomical days start at noon, so midnight UT is JDN − 0.5. MJD = JD − 2,400,000.5, which starts at midnight. The ordinal day is the number of days since 31 December of the previous year.

Example: 8 October 2026 at noon UT has Julian Day Number 2,461,322 and Julian Date 2,461,322.0; at midnight UT it is 2,461,321.5, which is MJD 61,321. The same date is day 281 of the year, written 26281 or 2026281. JD 2,451,545.0 is the J2000 epoch, 1 January 2000 at 12:00 UT.

Two-digit years in YYDDD are read as 2000 to 2069 or 1970 to 1999. For the weekday of a date use the day of the week calculator, for week numbers the week number calculator, and for Unix time the timestamp converter.

How to use the Julian Date Converter

  1. Choose the conversionDate to Julian, Julian Date to calendar date, or YYDDD to date.
  2. Enter the valueA date and time in UT, a Julian Date, or an ordinal date such as 26281.
  3. Read the resultsJDN, JD, MJD, ordinal dates and the calendar date.
  4. Copy what you needUse Copy results to keep every format.

Julian Date Converter features

  • Calendar date to Julian Day Number
  • Julian Date with time of day
  • Modified Julian Date (MJD)
  • Julian Date back to calendar date and time
  • YYDDD and YYYYDDD ordinal dates
  • Day of the year
  • Formula shown

Common uses

  • Reading production and expiry codes
  • Military and government date formats
  • Astronomy observations
  • Satellite and space data
  • Mainframe and database dates

Julian dates in practice: astronomy, software, food codes and the man who invented the count

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

The word "Julian" is attached to two quite different things: the old Julian calendar of Julius Caesar, and the Julian Day Number, a continuous count of days used by astronomers and programmers. A third use, day-of-year codes on packaging and in industry, is often loosely called a Julian date too. This guide works through today's Julian Day Number, explains where each kind of Julian date appears and tells the story of the scholar who invented the count.

A worked example

On 25 October 2026, the Julian Day Number is 2,461,339, counted at noon Universal Time. At midnight UT at the start of that date, the Julian Date is 2,461,338.5, and the Modified Julian Date is 61,338. The same date is day 298 of 2026, which in a YYDDD code becomes 26298.

Because the Julian Day Number is a single number for each day, subtracting two of them gives the number of days between dates instantly, with no months or leap years to worry about.

Why astronomers use it

Astronomers observe events that span many years, such as the changing brightness of variable stars, and they need a time scale without calendar complications. The Julian Day count gives every moment a single number, and the decimal part shows the time of day. The day begins at noon so that a night's observations, at least in Europe where the system was developed, fall within one Julian day.

The inventor

The count is based on the Julian Period, a cycle of 7,980 years devised in 1583 by the French scholar Joseph Scaliger, who combined three older calendar cycles. Day zero falls on 1 January 4713 BC in the Julian calendar, a date earlier than any historical record, so all recorded dates have positive numbers. The name is often said to honour Scaliger's father, Julius Caesar Scaliger, though it also matches the Julian calendar it was built on.

Software and databases

Some databases and programming libraries store dates as Julian Day Numbers or similar day counts, because arithmetic is simple. SQLite, for example, has a function that returns the Julian day of a date. Spreadsheets use their own day counts starting from 1900 or 1904, which are related ideas with different starting points.

Day-of-year codes on products

Food and medicine packaging, and many manufacturing systems, use day-of-year codes such as 26298 or 298 to record when a product was made or packed. In the United States, egg cartons often show a three-digit pack date, where 001 is 1 January and 365 is 31 December. Knowing the code makes it possible to tell how fresh a product is, though the use-by or best-before date is what matters for safety.

Military and industry dates

Military and logistics systems sometimes use a four-digit code of the last digit of the year followed by the day number, so 6298 means day 298 of a year ending in 6. Because the decade is not shown, the code relies on context, which is why longer formats are used where confusion is possible.

Not the Julian calendar

The Julian Day Number has nothing to do with whether a date is in the Julian or Gregorian calendar; it can be calculated from either. Converting a date in the old Julian calendar to the modern calendar is a separate task, needed mainly for historical research into dates before a country adopted the Gregorian reform.

Common mistakes

  • Confusing the Julian Day Number with the Julian calendar.
  • Forgetting that Julian days begin at noon, not midnight.
  • Misreading two-digit or one-digit years in day-of-year codes.
  • Treating a pack date code as a use-by date.

Related tools

For the weekday of a date, use Day of the Week Calculator. For ISO week numbers, try Week Number Calculator, and to count days between dates, Days Between Dates Calculator.

Day numbers in agriculture and science

Scientists and farmers often record observations by day of the year, such as the day a crop was planted or the date of the first frost. Comparing day numbers across years shows whether seasons are starting earlier or later, a common method in studies of climate and plant growth.

Reading a code by hand

To read a code such as 26298, take the first two digits as the year, 2026, and count forward 298 days from 1 January, which gives 25 October. In a leap year, every date from 1 March onwards is one day earlier for the same day number, so day 298 of 2028 is 24 October.

Satellites and spacecraft

Space agencies record satellite and spacecraft events using Julian dates or related day counts, which make intervals between observations easy to calculate. Orbital data published for satellites, for example, often gives the reference time as a year and a fractional day of the year, a compact and precise format.

Privacy

Conversions run in your browser. Nothing you enter is sent to a server.

Frequently asked questions

What is a Julian date?

In astronomy, the number of days since noon on 1 January 4713 BC, with a fraction for the time of day. In industry and the military, it usually means the year and the day of the year, such as 26281 for 8 October 2026.

How do I convert a date to a Julian Day Number?

Use the Fliegel–Van Flandern formula shown above, or this calculator. For example, 1 January 2000 is JDN 2,451,545, and every day after adds one.

What is the difference between JDN and JD?

The Julian Day Number is a whole number for the day, counted from noon. The Julian Date adds the time since noon as a fraction, so 6:00 PM UT is JDN + 0.25 and midnight is JDN − 0.5.

What is the Modified Julian Date?

MJD = JD − 2,400,000.5. It starts at midnight instead of noon and uses smaller numbers. MJD 0 was 17 November 1858, and MJD 61,321 is 8 October 2026.

How do I read a YYDDD date code?

The first two digits are the year and the last three the day of the year. 26281 is the 281st day of 2026, which is 8 October. Food and drug packaging often use it for production dates.

What day of the year is it?

Enter today's date and read the ordinal day: 1 January is day 1 and 31 December is day 365, or 366 in a leap year.

Is the Julian date the same as the Julian calendar?

No. The Julian calendar is the calendar introduced by Julius Caesar, used in Europe before the Gregorian reform. The Julian Day count was named by Joseph Scaliger in 1583 and works with any calendar.

Why does the Julian day start at noon?

So that a whole night of astronomical observations falls on one date. The convention dates from the 19th century, before observatories used Universal Time from midnight.