How it works
Dates are compared at midnight UTC so daylight-saving changes never add or remove a day.
Examples
Want the full walkthrough? Read the step-by-step guide.
About the date difference calculator
Counting the days between two dates sounds simple until leap years, month lengths and inclusive versus exclusive counting get involved. This tool compares dates at midnight UTC so daylight saving never adds or removes a day, then shows the gap in days, weeks and in years, months and days. An option lets you include the end date, which matters for bookings, notice periods and billing.
When to use it
- Calculating notice periods, warranty periods and deadlines.
- Counting days to an exam, trip or event.
- Finding the length of a project or contract.
- Working out how many days you were employed or enrolled.
Tips for accurate results
- Decide whether the end date counts. A hotel stay from the 1st to the 3rd is 2 nights, but a three-day event on those dates covers 3 days.
- Use the weeks figure for project planning and the years-months-days figure for age-style statements.
- The start and end can be in any order; the tool swaps them.
Common mistakes to avoid
- Assuming every month has 30 days.
- Forgetting that February has 29 days in leap years.
- Counting both the start and end dates when only one should count.
Frequently asked questions
How many days between two dates?
Subtract the earlier date from the later date. This tool does it automatically, including leap years.
Does it include the end date?
Not by default. Tick "include end date" to add one day.
Can the start date be later than the end date?
Yes. The tool swaps them and still shows a positive gap.