How many days lie between two dates
A proleptic Gregorian date in the years 1600 through 2400 becomes an integer day count, and the elapsed days are the difference. An uncertainty widens each date by that many days and reports the possible differences. A ranged date runs from its earliest to its latest possible day, and the days between two ranged dates run from the fewest to the most. The source label is text. It is not fetched, and it is not a biography.
The result appears here when the page script runs.
How it is computed
Method
The day count follows the civil integer recurrence opened on Howard Hinnant's page on 28 October 2026: shift the year when the month is January or February, then combine the 400-year era, the day of the year, and the offset 719468. The inverse recovers the date. Elapsed days are the second serial minus the first. With uncertainties u and v, the possible differences run from (second minus u) minus (first plus v) through (second plus u) minus (first minus v).
Ranged dates
Each ranged line becomes the serial of its earliest day and of its latest day, by the same recurrence, and spans latest minus earliest plus one days. From one line to the next, the fewest days are the next earliest minus this latest, and the most are the next latest minus this earliest; every whole number between them can occur. When the fewest is above zero the next line is later, when the most is below zero it is earlier, and otherwise the order is not settled. The uncertainty on the two dates above is the same case, with the date less and plus its uncertainty as earliest and latest.
Assumptions
Years stay in 1600 through 2400 so the round trip is inside the tested range. A day that is not in the month is refused. Leap days follow the Gregorian rule, including the century exception.
Limits
The label is not a source that was opened, except that the algorithm page itself was opened for the method. The dates are not events in a life.
Reproducibility
The inputs are kept in the address bar, so the same link reruns the same calculation.