EpochLab

Exclusive Date Difference

Days between two dates, not counting the end

The subtraction answer — the distance from one date to another, which is what a deadline, an age and every date library mean by a difference.

Questions people ask

The things that come up about exclusive date differences, answered plainly.

Why is this the default everywhere in software?

Because it composes. Exclusive differences add up: the gap from A to B plus the gap from B to C equals the gap from A to C. Inclusive counts do not, which is why every date library subtracts.

Related tools

How far apart two instants are — in whichever unit you need, counting every day or only the working ones.

All 160 tools · More in date difference & duration