HomeDate & Time › Date

Date Calculator

Days Between Dates

Days
Weeks
Years, Months, Days
Show the math
Enter values to see the worked formula.

Add or Subtract from a Date

Result Date

Months and years use calendar arithmetic: adding 1 month to Jan 31 lands on Feb 28/29, not March 3. For exact working-day spans, use business days; for age-style breakdowns, use age.

What Your Result Means

How This Calculator Works

For days between dates, the tool subtracts one midnight timestamp from another and divides by 86,400,000 milliseconds per day. The year-month-day breakdown walks forward through calendar months to give an exact count. For add/subtract mode, it applies JavaScript's native Date methods which handle month lengths, leap years, and end-of-month overflow automatically. All dates are interpreted in your local timezone.

Quick Questions

Does this include the start and end dates?

The count measures the gap between the two dates. If start and end are the same day, the result is 0. To include both endpoints, add 1 to the result.

How does it handle leap years?

February 29 is counted normally in leap years. The year-month-day breakdown walks through actual calendar months, so leap days are always included when they fall in the range.

What happens when I add 1 month to January 31?

JavaScript's Date object rolls forward to the last valid day. Adding one month to January 31 gives February 28 (or 29 in a leap year), not March 3.

Can I calculate business days?

This tool counts calendar days only. For a weekday-only count, use the day counter which includes a business-days row.

Why do the weeks show a decimal?

Weeks are total days divided by 7 without rounding, so you can see partial weeks. For example, 10 days shows as 1.43 weeks rather than "1 week and 3 days."

Sources

Method & review

MethodologyHow we calculate this Reviewed & Updated2026-04 Next review2027-04

Estimate only. Results reflect your inputs and standard formulas. Double-check important decisions independently.