Date Calculator

Count the days between two dates, or add and subtract days from a date.

Days between two dates

Days
Weeks
Years, months, days

Add or subtract time

Result

Everything you enter is processed inside this browser and is never sent to a server.

How to use it

How days are counted

By default the start date is not counted and the end date is, so January 1 to January 2 is 1 day. This matches “days from now” calculations and elapsed-time counts.

Tick “Count both the start and end date” to include both ends, so January 1 to January 2 becomes 2 days. Use it for things like the length of a trip or an event where the first day counts as day one.

ExampleDefaultInclusive
Jan 1, 2024 to Dec 31, 2024365 days366 days
Apr 1, 2025 to Apr 30, 202529 days30 days

Adding months

Months have 28 to 31 days, so when the same day does not exist in the target month, the result moves to the last day of that month. January 31 plus one month is February 28, or February 29 in a leap year. The years, months and days breakdown follows the same rule.

Frequently asked questions

Are leap years handled?

Yes, including the rule that years divisible by 100 but not by 400, such as 2100, are not leap years.

Can I use it for legal or contract deadlines?

Legal and contractual periods often have their own rules about whether the first day counts and how weekends or holidays are treated, so they may differ from this result. Always check important deadlines against the contract or with a professional.

Can it count business days?

Not yet. Public holidays differ by country and year, so business days are not included for now.