Skip to main content

Date Difference Calculator

Find the exact difference between two dates in years, months, and days.

Built and tested by Muhammad Irfan Liaqat · Updated

Date Difference Calculator: key facts

  • Finds the time between two dates in years, months and days
  • Also gives the total days, whole weeks, hours and minutes
  • The order of the dates does not matter, and past and future dates both work
  • Counts calendar days, including weekends and holidays; the end date is not added as an extra day

How the days between two dates are counted

The date difference calculator measures the time between two dates and shows it as years, months and days, as total weeks and as total days. Use it for notice periods, contract lengths, how long ago something happened or how long until an event. The order does not matter: an earlier end date gives the same result as swapping the two.

The total counts calendar days, including weekends and holidays, and does not count the start date itself, so 1 January to 31 January is 30 days. If a rule counts both the first and the last day, as some leave and visa rules do, add one. Leap years are included automatically, so a span containing 29 February is one day longer than the same span in a common year.

How to count the days between two dates

  1. 1Enter the start date
  2. 2Enter the end date
  3. 3Read the difference in years, months and days
  4. 4Use the total days or weeks if you need a single number

Frequently Asked Questions

Does the count include weekends?
Yes. The total includes every calendar day between the two dates, weekends and public holidays included.
Is the start date counted?
No. The calculator counts the days from the start date to the end date, so the same date twice gives 0 days and 1 January to 2 January gives 1 day. Add one if you need both dates included.
Can I use past and future dates?
Yes. Any two dates work, and the order does not matter; the result is always the gap between them.
How many days are in a year?
A common year has 365 days and a leap year has 366. Leap years fall every four years, except years ending in 00 that are not divisible by 400, so 2000 was a leap year and 2100 will not be.
How do I count business days between two dates?
This calculator counts every calendar day, not working days. For a rough figure, multiply the total days by 5/7 and subtract public holidays. In Excel, =NETWORKDAYS(start, end) gives the exact number of weekdays.
How many weeks are there between two dates?
Enter both dates and read Total Weeks, which shows the number of complete weeks. Divide Total Days by 7 if you need the fraction of a week too.
How many months are there between two dates?
The result gives years, months and days. For a total in months, multiply the years by 12 and add the months: 2 years 3 months is 27 months.
How many days are left until a holiday such as Christmas?
Enter today's date and the holiday's date, or open the countdown pages at alventra.io/days-until, which show the days left until Christmas, Ramadan, Eid, Diwali, New Year and other holidays.

Related Tools

Guides

Quick date answers