Days Between Dates Calculator
Find the number of days between two dates, plus weeks and total months estimate.
Enter your values and click Calculate
How It Works
Both dates are converted to UTC midnight timestamps using Date.UTC() with a round-trip validity check that catches impossible dates like February 30. The difference in milliseconds is divided by 86,400,000 and rounded to produce an exact whole-day count. Approximate weeks are computed as days ÷ 7; approximate months use an average of 30.4375 days per month (365.25 ÷ 12); approximate years use 365.25 days. The direction note is determined by the sign of the raw difference before the absolute value is taken. Because all arithmetic happens in UTC, daylight saving time transitions — which shift local midnight by an hour — cannot cause off-by-one errors.