Skip to content
CornerTools

Julian Date Converter

Convert dates to Julian dates in both senses, and back: the day-of-year code (YYDDD) on labels and in mainframes, and the astronomical Julian Date and MJD.

Convert from
Date
Time (UTC)

“Julian date” means two different things. On food and drug labels, in manufacturing and in mainframe systems it is the year and the day of the year: 26321 is the 321st day of 2026. In astronomy the Julian Date is a running count of days since noon on 1 January 4713 BC, with the time of day as a decimal: midnight UTC at the start of 17 November 2026 is JD 2461361.5.

The converter gives both for any date from 1 January 1 to 31 December 9999 and reads either back: a date and time, a JD or MJD, or a day-of-year code in YYDDD, YYYYDDD or CYYDDD form. It opens on today, and a chart lists the day of the year for every date of the year shown, ready to print.

How to use it

Date takes a day, month and year, a Calendar (Gregorian unless chosen otherwise) and a Time (UTC), 00:00:00 unless set; the line under it gives that time on your own clock. A Gregorian date before 15 October 1582 offers to read it as Julian, since records from before then usually are.

Julian Day takes a JD or, switched to MJD, a Modified Julian Date, with decimals for the time; the result is rounded to the second. Day-of-year code takes 5 digits (YYDDD), 6 (CYYDDD) or 7 (YYYYDDD, or YYYY-DDD); spaces, dots or dashes may separate the year from the three-digit day. A two-digit year is read within 50 years of this year, from 49 years back to 50 ahead, and the result says how it was read. Day 000, and day 366 in a year of 365 days, are refused with the reason.

Every form in the result has its own copy button. CYYDDD is given for 1900–2099 only: JD Edwards defines the century digit as 0 for the 1900s and 1 for the 2000s, and nothing further.

How it works

The Julian Date counts days from noon Universal Time on 1 January 4713 BC in the Julian calendar, so each Julian day begins at noon and midnight is .5. The converter computes it from the date's day count: JD 2440587.5 is midnight UTC at the start of 1 January 1970, the Unix epoch, and the time adds its fraction of a day. Every day has 86,400 seconds: leap seconds are ignored, and astronomical ephemerides, which run on Terrestrial Time (TT), are about 69 seconds ahead of UTC. USNO counts in UT1, which stays within a second of UTC.

The Julian Day Number is the whole number of the Julian day that begins at noon on a date. The Modified Julian Date subtracts 2,400,000.5, so its days begin at midnight and MJD 0 is 17 November 1858.

The day-of-year code is the ordinal date: the year, then the day counted from 1 January as 001. YYDDD keeps two digits of the year, YYYYDDD all four, and JD Edwards' CYYDDD puts a century digit first, which plus 19 gives the century.

The Julian calendar is a third thing again: Julius Caesar's calendar, with a leap year every four years and no century exception. It is 13 days behind the Gregorian in 2026. Gregorian dates before 1582 are proleptic, counted backwards by the Gregorian rules, as ERFA's routines compute them.

JD = days since 1970-01-01 + 2,440,587.5 + seconds since midnight UTC ÷ 86,400
JDN = days since 1970-01-01 + 2,440,588
MJD = JD − 2,400,000.5
YYDDD = (year mod 100) × 1,000 + day of year

Examples

17 November 2026 in every form

Date
Tuesday, 17 November 2026, 00:00:00 UTC
YYDDD
26321
YYYYDDD
2026321
Ordinal date
2026-321
CYYDDD
126321
Julian Date
2461361.5
Julian Day Number
2461362
Modified Julian Date
61361
Julian calendar
4 November 2026

Day 321 of 2026, with 44 left. Its Julian day number is 2461362, not 2461361: Julian day 2461362 begins at noon, twelve hours after the midnight shown. At 12:00:00 UTC on 1 January 2000 the JD is a whole 2451545.0, the J2000 reference epoch.

The 1582 calendar reform

Date
4 October 1582
Calendar
Julian
Gregorian date
Thursday, 14 October 1582
Julian Day Number
2299160

In the Julian calendar, Thursday 4 October 1582 was the last day before the Gregorian reform; the next day was Friday, 15 October 1582. Entered as a Gregorian date instead, 4 October 1582 is a different day, 10 days later, which is why the converter asks for the calendar.

Reading a two-digit code

Day-of-year code
77001
Read as
Saturday, 1 January 1977 (in 2026)

In 2026 a two-digit year reads within 50 years: 77 is 1977 and 76 is 2076. Write the four-digit year (YYYYDDD) for a date outside that window.

Day-of-year chart for 2026

The day of the year for each date in 2026, a common year
DayJanFebMarAprMayJunJulAugSepOctNovDec
1001032060091121152182213244274305335
2002033061092122153183214245275306336
3003034062093123154184215246276307337
4004035063094124155185216247277308338
5005036064095125156186217248278309339
6006037065096126157187218249279310340
7007038066097127158188219250280311341
8008039067098128159189220251281312342
9009040068099129160190221252282313343
10010041069100130161191222253283314344
11011042070101131162192223254284315345
12012043071102132163193224255285316346
13013044072103133164194225256286317347
14014045073104134165195226257287318348
15015046074105135166196227258288319349
16016047075106136167197228259289320350
17017048076107137168198229260290321351
18018049077108138169199230261291322352
19019050078109139170200231262292323353
20020051079110140171201232263293324354
21021052080111141172202233264294325355
22022053081112142173203234265295326356
23023054082113143174204235266296327357
24024055083114144175205236267297328358
25025056084115145176206237268298329359
26026057085116146177207238269299330360
27027058086117147178208239270300331361
28028059087118148179209240271301332362
29029088119149180210241272302333363
30030089120150181211242273303334364
31031090151212243304365

Rules and sources

The Julian Date follows ERFA's eraCal2jd, derived from the IAU's SOFA library, which takes the MJD zero-point as 2,400,000.5 and cites the Explanatory Supplement to the Astronomical Almanac (1992), section 12.92. USNO defines the Julian Date as days and fractions since noon on 1 January 4713 BC in the Julian calendar.

CYYDDD is JD Edwards' Julian date format: C added to 19 gives the century, YY is the year within it and DDD the day of the year, so 098185 is 4 July 1998 and 117001 is 1 January 2017.

Sources

Reviewed

Frequently asked questions

The count was set up for astronomers, who observe at night: starting the day at noon keeps a whole night under one day number. Midnight UTC is always a .5 JD, and the Modified Julian Date shifts the start back to midnight.
It is called one on labels and in mainframes, but it is an ordinal date: the year and the day of the year. It has nothing to do with the Julian calendar or with the astronomical Julian Date.
Only in leap years: the Julian makes every fourth year one, the Gregorian skips century years not divisible by 400, so 1900 was a leap year in the Julian calendar and not in the Gregorian. The gap grows by a day each such century: 13 days now, and 14 from March 2100.

See also