Days Between Dates Calculator
Calculate the exact number of days, weeks, months, and years between any two dates. Includes breakdowns in multiple units with optional time precision.
Runs in your browser. No data leaves your device.
About this tool
Calculates the exact time between two dates as years, months and days, plus totals in months, weeks, days, hours, minutes and seconds. Useful for ages of projects, contract lengths, anniversaries, or "how many days until" questions. Times of day can optionally be included.
Features
- Start date defaults to today; dates are typed as MM/DD/YYYY (slashes are inserted automatically) or chosen from a calendar picker
- Calendar breakdown in years, months and days; months step with end-of-month clamping like the Date Calculator (Jan 31 to Mar 1 is 1 month, 1 day)
- Totals: months, weeks, days, hours, minutes and seconds. Days, weeks and months count calendar days, so a daylight saving change never makes a range a day short; hours, minutes and seconds are real elapsed time
- Optional "Include time" toggle with start and end times: 12-hour with a/p (e.g. 0930a, 05:15 PM) or 24-hour without (e.g. 1430)
- Order-independent: if the end date is before the start date the dates are swapped and a note says so
- One-line summary in the form "N years, N months, N days (N days total)" with a copy button and a Pipeline button to send it to other tools
How to use it
- Check or change the Start Date (today by default).
- Type or pick the End Date.
- Optionally tick "Include time" and enter start/end times.
- Read the breakdown and totals; copy the summary if needed.
Inputs
- Dates in MM/DD/YYYY (US order); month 1-12, day 1-31, 4-digit year
- Optional times as HH:MM: with a/p it is a 12-hour time; without it is a 24-hour time (00-23), so 12:00 is noon
Outputs
- Years / months / days breakdown
- Total months, weeks, days, hours, minutes, seconds
- Copyable plain-text summary
Limits and notes
- An impossible date such as 02/31 is rejected (no result is shown) rather than rolled into the next month
- A range that crosses a daylight saving change is one hour longer or shorter in Total Hours/Minutes/Seconds than days x 24, because those count real elapsed time
- Inputs are not saved; nothing is uploaded
Frequently Asked Questions
How does the Days Between Dates Calculator work?
Both MM/DD/YYYY dates are read as local dates, impossible ones such as 02/31 are rejected, and the two are put in order. Total days are counted by the calendar, so a daylight saving change never makes a range a day short; weeks come from total days. The years, months and days breakdown steps whole months forward from the start date, clamping to the end of shorter months (Jan 31 to Mar 1 is 1 month, 1 day), then counts the leftover days. Total hours, minutes and seconds are real elapsed time, so across a daylight saving change they can be an hour more or less than days x 24.
What units does the result show?
The main display shows years, months, and days. Below that, stat cards break the duration into total months, weeks, days, hours, minutes, and seconds.
Can I include hours and minutes?
Yes. Toggle "Include time" to add start and end times for hour-and-minute precision in the calculation.
What if I enter the dates in the wrong order?
The tool works regardless of order. It calculates the absolute duration between the two dates, so start and end date are interchangeable.