ToolGlint

Date Difference Calculator

Work out the time between two dates in years, months and days, or as total weeks, days, working days and hours.

Runs in your browser. Nothing you enter is uploaded or stored.

How to use the Date Difference Calculator

  1. Pick a start date and an end date. The result appears straight away.
  2. Type each date as YYYY-MM-DD or pick it from the calendar. Add a time on a 24-hour clock, such as 17:30, if you need the answer to the minute, or leave the times empty to count whole days.
  3. Check the weekday shown under each date, or press one of the shortcuts to set the end a week, a month, three months or a year after the start.
  4. Read the main result in years, months and days, or use the cards below it for the same period as total months, weeks, days, working days, hours, minutes or seconds. Click a card to copy it.
  5. Tick Count the end day too when both the first and last day belong to the period, as with leave, bookings and rentals.
  6. Choose your weekend, Saturday and Sunday or Friday and Saturday, so that working days are counted for your country.

Questions and answers

How do I work out someone’s age?
Put the date of birth as the start and today as the end. The main result is the age in years, months and days, and the Days row shows how many days old they are.
Is the end day included in the count?
Not by default. From Monday to Friday of the same week is 4 days, the way a difference is normally measured. Tick Count the end day too to make it 5, which is how periods are usually counted when you are busy on both the first and the last day.
How are months counted when they have different lengths?
By the calendar, not by a fixed number of days. One month after the 15th is the 15th of the next month, however long the month is. If the next month has no such day, its last day is used, so one month after 31 January is 28 February, or 29 February in a leap year.
How are working days counted?
Every day in the period that is not part of the weekend you chose is counted. Public holidays are not taken out, because they differ by country and by year, so subtract any that fall inside your period.
Does daylight saving time affect the result?
No. The dates are treated as calendar dates with no time zone, so every day counts as exactly 24 hours. If you need the exact elapsed time across a clock change in a particular place, add or remove the hour yourself.
What if the end date is before the start date?
The period is still measured, from the earlier date to the later one, and a note tells you the two were in reverse order. Use Swap start and end to put them the right way round.

Related tools