Date Calculator

Calculate the difference between two dates, or add/subtract days from a date. All calculations run in your browser — nothing is sent to a server.

From 2026-05-24 to 2026-05-31:

7

days

1

weeks

0

months (approx)

0

years (approx)

Days, weeks, months, and years are based on the total day difference.

Frequently Asked Questions

Does it include both the start and end dates?
The calculation counts the exact difference between dates. For example, from January 1 to January 2 is 1 day. If you need to include both dates in your count, simply add 1 to the result.
How are months and years calculated?
Months are calculated by dividing the total number of days by 30.44 (the average days per month). Years are calculated by dividing by 365.25 (accounting for leap years). These are approximate values — for exact month-to-month differences, refer to the day count.
Is the tool accurate for leap years?
Yes. The tool uses the JavaScript Date object which correctly handles leap years (including February 29). The day difference between two dates is always exact, and the year calculation uses 365.25 days to account for the average leap year cycle.
What if I enter a negative number in Add / Subtract?
A negative number subtracts days from the base date. For example, entering -7 with a base date of March 10 will return March 3. This is useful for calculating past dates.

More Free Tools