# Julian day > How do you convert a UTC date to a Julian day? The astronomer’s day count: JD for a UTC moment, MJD from midnight, and back. Convert a UTC date and time to a Julian Day (JD) or Modified Julian Day (MJD) number, or turn a day number back into a date, to the second. - Page: https://how.box/julian-day/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/julian-day/?value={value}&direction={direction}&scale={scale}&date={date}&time={time} - `value` (number -678575 to 5.37348449998e6): Day number. Example: `2451545`. - `direction` (from_date or from_number): Convert. Example: `from_date`. - `scale` (jd or mjd): Day count. Example: `jd`. - `date` (text): Date (Gregorian). Example: `2000-01-01`. - `time` (text): Time (UTC, HH:MM:SS). Example: `12:00:00`. Example answer: https://how.box/julian-day/?value=2451545&direction=from_date&scale=jd&date=2000-01-01&time=12%3A00%3A00 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `julian_day_calculate`: Julian day: UTC, proleptic Gregorian calendar. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"julian_day_calculate","arguments":{"value":2451545,"direction":"from_date","scale":"jd","date":"2000-01-01","time":"12:00:00"}}}` - GET: https://how.box/mcp/run/julian_day_calculate?value=2451545&direction=from_date&scale=jd&date=2000-01-01&time=12%3A00%3A00 ## How it works Julian Day is a continuous count of days used in astronomy. Its day begins at noon, so midnight has a fractional part of .5. This is different from a date in the Julian calendar. The Gregorian day count follows the calendar arithmetic described in Meeus, chapter 7. JD = days since 1970-01-01 + 2440587.5 + UTC seconds / 86400; MJD = JD − 2400000.5. At 2000-01-01 12:00 UTC, JD is 2451545 and MJD is 51544.5. This converter uses the proleptic Gregorian calendar, years 1–9999, and uniform 86400-second days. It does not model leap seconds or convert between UTC, TT and UT1. Reverse conversions round to the nearest second. ## FAQ **Why does JD change at noon?** The astronomical Julian-day convention starts each day at noon. **What is Modified Julian Day?** MJD subtracts 2400000.5 from JD, so its integer boundary is midnight. **Is Julian Day the Julian calendar?** No. It is a continuous day count, not a civil calendar. **Which time zone is used?** UTC only. Convert a local time to UTC first. **Are leap seconds supported?** No. Every day is treated as 86400 seconds and reverse conversion rounds to a second. **Why does my result differ from the USNO converter for old dates?** For dates on or before 4 October 1582, the US Naval Observatory reads the date in the Julian calendar, while this converter always uses the Gregorian calendar extended backwards. The same written date then lands on a different day number, by 10 days in 1582 and fewer further back. **How do I turn a Unix timestamp into a Julian Day?** Divide the seconds by 86400 and add 2440587.5, the JD of 1970-01-01 00:00 UTC. For example, 1,700,000,000 s gives JD 2460263.4259, which is 2023-11-14 22:13:20 UTC. **When was Julian Day 0?** At noon Universal Time on 1 January 4713 BC in the Julian calendar. This converter covers years 1 to 9999, which starts at JD 1721425.5. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)