calc.cihat.dev

Days between dates

Pick two dates to count the days between them. You also get weeks, months and years, and how many of those days are weekdays.

Days between

–

In weeks
–
In years, months and days
–
Weekdays (Monday to Friday)
–
Weekend days
–

How to use it

  1. Set the start date. It starts as today.
  2. Set the end date. If it is earlier than the start, the two are swapped for you.
  3. Tick “count the end date too” when both the first and the last day should count, as for a holiday or a hotel stay counted in days.

Is the end date included?

By default the count is the plain difference: from Monday to Friday is 4 days, the way you would say “4 days from now”. Many questions count both ends instead. A leave from Monday to Friday covers 5 days. A course from the 1st to the 10th runs for 10 days. Tick the box and one day is added for the end date.

Weekdays, not working days

The weekday count is Monday to Friday. Public holidays are not taken out, because they differ by country, region and year, and some fall on dates that move. For a deadline in working days, take your holidays off the count by hand, or add the days with the add days to a date calculator, which can step over weekends.

In the United States, federal law lists 11 legal public holidays, among them New Year’s Day, Juneteenth on 19 June, Independence Day on 4 July, Thanksgiving on the fourth Thursday in November and Christmas Day (5 U.S.C. 6103). Take the ones that fall on a weekday out of the weekday count.

Need hours and minutes rather than days? The time duration calculator works with clock times.

Counting the days by hand

Count what is left of the first month, add the whole months in between, then add the days into the last month. From 14 February 2026 to 1 June 2026: 14 days are left in February (28 − 14), then March has 31, April 30 and May 31, and 1 day runs into June. 14 + 31 + 30 + 31 + 1 = 107 days, the figure the calculator gives. In years, months and days it is 3 months and 18 days.

Sample counts, without and with the end date
FromToDaysWith the end date
Mon 2 Mar 2026Fri 6 Mar 202645
14 Feb 20261 Jun 2026107108
25 Nov 20261 Jan 20273738
1 Jan 20261 Jan 2027365366
1 Jan 20281 Jan 2029366367

Days between dates in Excel

Excel stores dates as numbers, so =B2-A2 or =DAYS(B2, A2) gives the plain difference, the same as this page with the box unticked (Microsoft Support: DAYS). NETWORKDAYS works differently: it counts working days, includes both the start and the end date, and takes out any holidays you list. Microsoft’s own example, 1 October 2012 to 1 March 2013, returns 110 (Microsoft Support: NETWORKDAYS).

Put the same two dates here and tick “count the end date too”: the weekday line shows 110 as well. Unticked it shows 109, because 1 March 2013 was a Friday and the plain count stops before it.

How the months are counted

Years, months and days are counted from the start date forward: first whole years, then whole months, then the days left. When the start day is missing from a month (the 31st, or 29 February), the month ends on its last day. The count uses calendar dates, so daylight saving time never adds or removes a day.

Questions people ask

How many days are there between two dates?

Subtract the earlier date from the later one in days. The calculator does it across months, years and leap years. Tick the box if the end date should count as well.

How many weekdays are between two dates?

The “weekdays” line counts Monday to Friday in the range. Public holidays are not removed.

Does it handle leap years?

Yes. Every date uses the Gregorian calendar with its leap-year rule: every fourth year, except century years not divisible by 400.

Can I count days into the past?

Yes. Put the past date in either field; the order does not matter.

How many days until a date?

Leave the start date as today and set the end date. The plain count is the number of days from now; tick the box if the target day itself should count.

Does Excel’s NETWORKDAYS count the start and end dates?

Yes, both. Tick “count the end date too” to match it here. Microsoft’s example, 1 October 2012 to 1 March 2013, gives 110 weekdays in both.

Is anything saved?

No. The count runs in your browser and nothing is stored.