Calculation method
The calculation compares date boundaries directly. It does not assume that a month has 30 days, and leap days are naturally included when the interval crosses them.
Two dates in. One satisfyingly exact number out.
Use two calendar dates to calculate the exact elapsed-day distance, plus a human-friendly weeks-and-days representation.
The calculation compares date boundaries directly. It does not assume that a month has 30 days, and leap days are naturally included when the interval crosses them.
“Days between” uses elapsed days. An inclusive count that counts both endpoint labels can be one day larger, so the convention matters.
From 1 March to 15 March there are 14 elapsed days, which is exactly two full weeks.
Any month figure is marked approximate because calendar months have unequal lengths.