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.
“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
| Day | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 001 | 032 | 060 | 091 | 121 | 152 | 182 | 213 | 244 | 274 | 305 | 335 |
| 2 | 002 | 033 | 061 | 092 | 122 | 153 | 183 | 214 | 245 | 275 | 306 | 336 |
| 3 | 003 | 034 | 062 | 093 | 123 | 154 | 184 | 215 | 246 | 276 | 307 | 337 |
| 4 | 004 | 035 | 063 | 094 | 124 | 155 | 185 | 216 | 247 | 277 | 308 | 338 |
| 5 | 005 | 036 | 064 | 095 | 125 | 156 | 186 | 217 | 248 | 278 | 309 | 339 |
| 6 | 006 | 037 | 065 | 096 | 126 | 157 | 187 | 218 | 249 | 279 | 310 | 340 |
| 7 | 007 | 038 | 066 | 097 | 127 | 158 | 188 | 219 | 250 | 280 | 311 | 341 |
| 8 | 008 | 039 | 067 | 098 | 128 | 159 | 189 | 220 | 251 | 281 | 312 | 342 |
| 9 | 009 | 040 | 068 | 099 | 129 | 160 | 190 | 221 | 252 | 282 | 313 | 343 |
| 10 | 010 | 041 | 069 | 100 | 130 | 161 | 191 | 222 | 253 | 283 | 314 | 344 |
| 11 | 011 | 042 | 070 | 101 | 131 | 162 | 192 | 223 | 254 | 284 | 315 | 345 |
| 12 | 012 | 043 | 071 | 102 | 132 | 163 | 193 | 224 | 255 | 285 | 316 | 346 |
| 13 | 013 | 044 | 072 | 103 | 133 | 164 | 194 | 225 | 256 | 286 | 317 | 347 |
| 14 | 014 | 045 | 073 | 104 | 134 | 165 | 195 | 226 | 257 | 287 | 318 | 348 |
| 15 | 015 | 046 | 074 | 105 | 135 | 166 | 196 | 227 | 258 | 288 | 319 | 349 |
| 16 | 016 | 047 | 075 | 106 | 136 | 167 | 197 | 228 | 259 | 289 | 320 | 350 |
| 17 | 017 | 048 | 076 | 107 | 137 | 168 | 198 | 229 | 260 | 290 | 321 | 351 |
| 18 | 018 | 049 | 077 | 108 | 138 | 169 | 199 | 230 | 261 | 291 | 322 | 352 |
| 19 | 019 | 050 | 078 | 109 | 139 | 170 | 200 | 231 | 262 | 292 | 323 | 353 |
| 20 | 020 | 051 | 079 | 110 | 140 | 171 | 201 | 232 | 263 | 293 | 324 | 354 |
| 21 | 021 | 052 | 080 | 111 | 141 | 172 | 202 | 233 | 264 | 294 | 325 | 355 |
| 22 | 022 | 053 | 081 | 112 | 142 | 173 | 203 | 234 | 265 | 295 | 326 | 356 |
| 23 | 023 | 054 | 082 | 113 | 143 | 174 | 204 | 235 | 266 | 296 | 327 | 357 |
| 24 | 024 | 055 | 083 | 114 | 144 | 175 | 205 | 236 | 267 | 297 | 328 | 358 |
| 25 | 025 | 056 | 084 | 115 | 145 | 176 | 206 | 237 | 268 | 298 | 329 | 359 |
| 26 | 026 | 057 | 085 | 116 | 146 | 177 | 207 | 238 | 269 | 299 | 330 | 360 |
| 27 | 027 | 058 | 086 | 117 | 147 | 178 | 208 | 239 | 270 | 300 | 331 | 361 |
| 28 | 028 | 059 | 087 | 118 | 148 | 179 | 209 | 240 | 271 | 301 | 332 | 362 |
| 29 | 029 | 088 | 119 | 149 | 180 | 210 | 241 | 272 | 302 | 333 | 363 | |
| 30 | 030 | 089 | 120 | 150 | 181 | 211 | 242 | 273 | 303 | 334 | 364 | |
| 31 | 031 | 090 | 151 | 212 | 243 | 304 | 365 |
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
- eraCal2jd: Gregorian Calendar to Julian Date — ERFA (from IAU SOFA)
- Julian Date Converter (notes) — U.S. Naval Observatory
- JD Edwards World Writer Guide, Appendix C: Julian Date Conversion — Oracle
Reviewed
Frequently asked questions
See also
- Unix Timestamp Converter — for a date and time as seconds since 1970 instead of days since 4713 BC.
- Day of the Week Calculator — for the weekday of any date and its place in the month.
- Easter Date Calculator — for Orthodox Easter, which is still reckoned in the Julian calendar.
- Week Number Calculator — for the ISO week number, another way of numbering the year's days.