Historical documents recorded dates in the Julian (old-style) calendar long after astronomers and most of Europe switched to the Gregorian (new-style) calendar. This converter moves a date cleanly between the two systems by routing through the Julian Day Number, and reports the day gap and weekday as well.
How it works
Both calendars are converted to a single integer, the Julian Day Number (JDN), using the standard Fliegel–Van Flandern algorithms, then back out into the target calendar:
Gregorian (y,m,d) ──► JDN ──► Julian (y,m,d)
Julian (y,m,d) ──► JDN ──► Gregorian (y,m,d)
weekday = (JDN + 1) mod 7
Because the JDN is a continuous day count, the difference between the two calendar dates for the same JDN is exactly the accumulated leap-day drift — about 13 days for any date in the 20th and 21st centuries.
Example and tips
Converting Gregorian 1700-02-28 to Julian gives 1700-02-18, a 10-day gap,
since 1700 was a Julian leap year but not a Gregorian one. The gap widened to 11
days after 1700, 12 after 1800, and 13 after 1900. When reading old church or
court records from before a country’s reform, treat the recorded date as Julian
and convert to Gregorian to compare against modern dates.