Date Difference Calculator

Pick two dates to see the gap in days, in years, months and days, and in working days. Set your own weekend and list your holidays, or find the date a number of working days away.

Free, no sign-up. Dates never leave your browser.

Dates

Tick this to count both the first and the last day, as in a two-day trip from the 1st to the 2nd.

Use a negative number to count back.

Dates as YYYY-MM-DD, one per line or separated by commas. Up to 400. No holidays are built in, because they differ by country and year.

Choose a start and an end date.

How to

Count the days in three steps

  1. Choose the two dates

    Enter the start and the end. If they are the wrong way round, the tool swaps them and tells you.

  2. Decide about the end date

    By default the end date is not counted, so 1 January to 2 January is 1 day. Tick the box to count both days.

  3. Read the totals

    See the gap in years, months and days, then total days, weeks, hours and working days. Add a number of working days to find a deadline.

Counting days properly

  • For a deadline, check whether the rule counts the first day, the last day or both, then set the end-date option to match.
  • Working days use the weekend you choose and the holidays you list. Type the holidays that apply to you; none are built in.
  • A holiday that falls on a weekend day is not subtracted twice.
  • When finding a date N working days away, day 0 is the start date itself, and the first working day counted is the next one.

FAQ

Date difference questions

How many days are there between two dates?

Enter both dates and the total appears. By default the start day is counted but the end day is not, which is the usual way of subtracting dates.

What does "count the end date too" change?

It adds one day to the totals so both the first and the last day are included. A stay from the 1st to the 3rd then counts as three days.

Does it exclude weekends and holidays?

Working days exclude the weekend you choose and any holidays you list. The total days figure always includes every day.

How are months and days worked out?

It counts the most whole calendar months that fit between the dates and then the days left over, using the real length of each month.

Are leap years handled?

Yes. 29 February is counted in leap years, so the gap from 2024-02-28 to 2024-03-01 is 2 days.

Is anything I enter stored or sent?

No. The calculation runs in your browser and nothing is sent to a server.