Count the days from one date to another, exclusive or inclusive.
Count the days from one date to another, exclusive or inclusive.
Enter values above and click Calculate — results will appear here with the formula explained.
Counting days hides a fork in the road. Elapsed time from March 1 to March 10 is nine days — you cross nine midnights. But a trip departing March 1 and returning March 10 lasts ten calendar days. Both are right; they answer different questions.
Deadlines, interest and age math use elapsed counting. Hotel stays, rental periods and vacation requests use inclusive counting. Choosing deliberately prevents off-by-one arguments later.
Advertisement
AdSense ready — add NEXT_PUBLIC_GOOGLE_ADSENSE_PUBLISHER_ID
Counting days hides a fork in the road. Elapsed time from March 1 to March 10 is nine days — you cross nine midnights. But a trip departing March 1 and returning March 10 lasts ten calendar days. Both are right; they answer different questions. Formula: elapsed days = (end − start) ÷ 86,400,000 ms; inclusive adds 1
Days Between Dates Calculator: Count the days from one date to another, exclusive or inclusive. Formula: elapsed days = (end − start) ÷ 86,400,000 ms. Example: March 1 → March 10: nine elapsed days, but ten days counted inclusively — the classic booking-vs-deadline distinction.
Count the days from one date to another, exclusive or inclusive. Formula: elapsed days = (end − start) ÷ 86,400,000 ms; inclusive adds 1
| Field | What to enter |
|---|---|
| From date | Enter a value |
| To date | Enter a value |
| Counting style | Enter a value |
All fields use the exact formulas shown below — results include step-by-step breakdowns you can verify by hand.
Counting days hides a fork in the road. Elapsed time from March 1 to March 10 is nine days — you cross nine midnights. But a trip departing March 1 and returning March 10 lasts ten calendar days. Both are right; they answer different questions.
Deadlines, interest and age math use elapsed counting. Hotel stays, rental periods and vacation requests use inclusive counting. Choosing deliberately prevents off-by-one arguments later.
Advertisement
AdSense ready — add NEXT_PUBLIC_GOOGLE_ADSENSE_PUBLISHER_ID
March 1 → March 10: nine elapsed days, but ten days counted inclusively — the classic booking-vs-deadline distinction.
Advertisement
AdSense ready — add NEXT_PUBLIC_GOOGLE_ADSENSE_PUBLISHER_ID