Skip to main content
Date & Time

Julian Day Number Calculator

A Julian Day is a continuous day count starting at noon UTC on 1 January 4713 BC — the standard reference astronomers, satellite operators and historians use to put any date on a single linear scale. Enter a Gregorian date and the calculator instantly returns the Julian Day Number (JDN), Modified Julian Day (MJD), JD at 00:00 UTC, weekday, and day of year.

Julian Day Number (JDN)

2,461,176

The astronomical integer JDN at noon UTC of the date.

Modified Julian Day (MJD)

61,175

MJD at 00:00 UTC of the date (= JD − 2 400 000.5).

JD at 00:00 UTC

2,461,175.5

Weekday

Friday

Day of year

Day 135

Formula

a = ⌊(14 − M)/12⌋, y = Y + 4800 − a, m = M + 12a − 3, JDN = D + ⌊(153 m + 2)/5⌋ + 365 y + ⌊y/4⌋ − ⌊y/100⌋ + ⌊y/400⌋ − 32 045 | MJD = JD − 2 400 000.5

Frequently asked

What is the difference between JDN, JD and MJD?

JD (Julian Date) is the continuous real-valued day count starting at noon UTC on 1 January 4713 BC; the fractional part encodes the time of day (e.g. .25 = 18:00 UTC). JDN (Julian Day Number) is the integer part, used when you just want to identify a day. MJD (Modified Julian Day) = JD − 2 400 000.5, anchored at 1858-11-17 00:00 UTC — defined by the IAU in 1957 and now standard in satellite, GPS and space-mission timestamps because the numbers are much smaller.

Why does the Julian Day epoch start in 4713 BC?

The system was proposed by the French scholar Joseph Justus Scaliger in 1583. He picked 1 January 4713 BC (Julian calendar) because three astronomical/calendrical cycles — the 28-year solar cycle, the 19-year Metonic cycle and the 15-year Roman indiction — all reset on that day, giving a combined period of 7,980 years. Anchoring the count there meant every historical date had a single positive integer with no negatives.

I got a different JDN for a date in 1500 than my history textbook — why?

Before 1582-10-15 the Gregorian calendar was not in use; everyday European dates were Julian. This calculator uses the proleptic Gregorian calendar — Gregorian rules extended backwards — which is what astronomers prefer for arithmetic. If your textbook quotes the Julian-calendar date, the JDN will differ by roughly 10 days at 1582, and more in earlier centuries. The widget shows a warning for any date before the reform.

How does this relate to Unix time?

Closely. Unix time counts seconds since 1970-01-01 00:00 UTC, which is JD 2 440 587.5. So any Unix timestamp t corresponds to JD = 2 440 587.5 + t / 86 400 and MJD = 40 587 + t / 86 400. The two systems are just different origins and units for the same linear time-line.

Related tools

Age Calculator

From your date of birth, get exact age, Chinese nominal age (虛歲), days lived and days to next birthday.

Date Difference Calculator

Enter any two dates to get the calendar gap, working days, weekend days, plus year/month/day breakdown and total weeks/months.

Time Zone Converter

Pick your local and target cities to convert a given clock time across time zones.

Date Add / Subtract Calculator

Add or subtract years, months, weeks and days from a start date to get the resulting date and weekday.

Business Days Calculator

Count the working days between two dates (excluding weekends) — or add N business days to a start date to find the deadline.

Pregnancy Due Date Calculator

Estimate the due date from your last menstrual period (LMP) using Naegele's rule, plus current gestational week, trimester and key pregnancy milestones.

Time Card Calculator (clock-in / clock-out / break)

Enter clock-in/clock-out times and break minutes to get total hours worked and gross pay — overnight (graveyard) shifts handled automatically.

Day of Year & Week Number Calculator

Pick any date to see which day of the year (1–366), ISO 8601 week number, weekday, and how many days from the start and end of the year.

Day of the Week Calculator (Any Date)

Enter any Gregorian date (past or future) to instantly find the day of the week — useful for birthdays, anniversaries and historical events.

Unix Timestamp ↔ Date Converter

Convert a Unix timestamp (seconds or milliseconds since 1970-01-01 UTC) to UTC, Hong Kong time and RFC 1123 HTTP date — and back. Built for debugging log files, API responses and database fields.

Easter Date Calculator

Pick a year and the Computus algorithm returns Easter Sunday plus Ash Wednesday, Palm Sunday and Good Friday.

Moon Phase Calculator

Enter any date to compute the lunar phase (new, first quarter, full, last quarter …), moon age in days and illuminated fraction.

Chinese Zodiac & Lunar Age Calculator

Find your Chinese zodiac animal, stem-branch element, zodiac year and lunar (nominal) age from any birth date.

Western Zodiac Sign Calculator

Enter your birth date to see your Western zodiac sign (Aries, Taurus, Gemini…) along with its element, modality and opposing sign.

Birthstone Calculator

Pick a birth month to instantly see the modern and traditional birthstones, the birth flower, the spanning zodiac signs and a colour swatch — handy when choosing jewellery or birthday gifts.

ISO 8601 Week Number Calculator

Enter any date and compute its ISO 8601 week number, ISO year and weekday — using the Monday-first / first-week-contains-Jan-4 rule.

Time Between Two Times Calculator

Enter two clock times (HH:MM[:SS]) and instantly see the difference in hours, minutes and seconds — with overnight-shift handling and decimal-hour output.

Hong Kong Statutory Annual Leave Calculator

Enter years of service and see the statutory paid annual leave entitlement under the HK Employment Ordinance §41AA.

Half-Birthday Calculator

Enter your date of birth to see when your next half-birthday falls, how many days away it is, and your current half-age (e.g. 33.5 years).

Daylight Hours (Sunrise / Sunset) Calculator

Enter a latitude, longitude and date to get the local sunrise, sunset, solar noon and total daylight hours using the NOAA solar position formula.