Date Difference Calculator
Find the number of days between two dates, and the exact difference in years, months, weeks and days. Enter any two dates, for example 1990 to 1993, and the result appears instantly. It runs entirely in your browser, so nothing you type is sent anywhere.
How to calculate the days between two dates
- Type or pick the start date and the end date.
- The result updates instantly: years, months and days, plus the total number of days.
- Use Swap if you entered them the wrong way round, or Today to use the current date.
- Tick Include the end date if you want to count both the first and the last day.
- Copy the result or a link to share it.
Examples
| Dates | Years, months, days | Total days |
|---|---|---|
| January 1, 1990 to January 1, 1993 | 3 years, 0 months, 0 days | 1,096 |
| February 29, 2000 to February 29, 2024 | 24 years, 0 months, 0 days | 8,766 |
| January 1, 2024 to December 25, 2024 | 0 years, 11 months, 24 days | 359 |
| January 1, 2000 to January 1, 2025 | 25 years, 0 months, 0 days | 9,132 |
| July 20, 1969 to January 1, 2000 | 30 years, 5 months, 12 days | 11,122 |
| January 31, 2024 to March 1, 2024 | 0 years, 1 month, 1 day | 30 |
How the calculation works
The calculator uses the real calendar, including leap years. It counts whole calendar months from the start date and then the remaining days, so Jan 31 to Mar 1 is 1 month and 1 day. The total number of days is the exact count of calendar days between the two dates. Weekdays are Monday to Friday; weekend days are Saturday and Sunday. All calculations use the dates you enter, without time zones, so daylight saving changes never affect the result.
Frequently asked questions
How do I calculate the number of days between two dates?
Pick a start date and an end date. The calculator subtracts them and shows the exact number of days, plus the same difference in years, months, weeks, hours and minutes.
Does the calculator include the end date?
By default the end date is not counted, so Monday to Tuesday is 1 day. Tick "Include the end date" to count both the first and the last day (Monday to Tuesday becomes 2 days).
How are years, months and days worked out?
The calculator counts whole calendar months from the start date, then the remaining days. If a month is shorter than the start day (for example Jan 31 plus one month), it uses the last day of that month.
Does it handle leap years?
Yes. Leap years are built in, including the century rule (1900 was not a leap year, 2000 was). The results also show how many February 29 dates fall in your range.
Is my data sent anywhere?
No. The calculation runs entirely in your browser. Nothing you enter is sent to a server or stored.
Can I calculate the difference when the start date is later?
Yes. If the start date is after the end date, the calculator swaps them for you and shows the difference as a positive number.