Converters & Math
Days Between Dates Calculator
Calendar day difference between two dates.
Days Between
364
How it works
The Days Between Dates Calculator finds the exact number of days, weeks, months, and years between any two dates. Pick a start date and an end date and the result updates instantly β no spreadsheet formulas or manual counting required.
This is one of the most commonly needed date calculations: figuring out how many days until a deadline or event, how long a project or contract has run, how many days someone has been employed, how old a document or asset is, or how many days remain in a countdown. HR teams use it for tenure and leave calculations, project managers use it for timeline tracking, and individuals use it for everything from "how many days until my trip" to legal notice periods.
How to use it: select a start date and an end date using the date pickers (or type them directly). The calculator immediately shows the total days between them, along with a breakdown into years, months, and remaining days, plus the equivalent in weeks. An option lets you include or exclude the end date itself, since some calculations (like inclusive date ranges in contracts) count both endpoints while others only count the days actually elapsed.
Handles edge cases correctly: leap years are calculated precisely using actual calendar logic rather than a fixed 365-day average, so spans crossing February 29 are accurate. Calculating backward (end date before start date) returns the absolute difference rather than an error.
Privacy: the calculation happens entirely in your browser using JavaScript's native Date object. No dates are ever sent to a server β useful when the dates involved relate to private contracts, medical timelines, or other sensitive records.
Frequently Asked Questions
- Yes. The calculation uses JavaScript's native Date object, which accounts for actual calendar rules including leap years, so a span crossing February 29 is calculated precisely rather than estimated with an average year length.
- It depends on your use case. Toggle 'Include end date' on for inclusive ranges (common in contracts and billing periods, where both the start and end day count), or leave it off to count only the days that have actually elapsed between the two dates.
- Yes. Either date can be before or after today β the tool works the same way for calculating how many days until a future deadline or how many days have passed since a past event.
- The tool returns the absolute number of days between the two dates rather than a negative number or an error, so the order you enter them in doesn't matter.