Time & dates

Days between dates calculator

Count calendar days between a start and end date. Choose whether to include the end date for an inclusive date count.

How to calculate it

By default, the calculator measures the number of calendar-day boundaries between two dates. From 1 January to 2 January is one day. Turn on “Include end date” to count both dates, giving two days instead. Weekends and public holidays count as ordinary calendar days.

Calendar days = end date − start date

Worked examples

Days between dates worked examples
ExampleWorkingAnswer
1 Jan to 1 Feb 2026End date excluded31 days
1 Jan to 1 Jan 2026End date excluded0 days
1 Jan to 1 Jan 2026Both dates included1 day
28 Feb to 1 Mar 2028Leap year; end excluded2 days

Frequently asked questions

Are leap years handled?

Yes. February 29 is included when it falls within the selected date range. Gregorian leap years are divisible by four, except century years unless divisible by 400.

Does this count working days?

No. All calendar days are counted, including weekends and public holidays. Business-day counts depend on local holiday calendars.

Do daylight-saving changes affect the result?

No. Dates are compared at UTC midnight so clock changes cannot add or remove a calendar day. This is a date count, not the exact elapsed hours between local times.

Method: Gregorian calendar arithmetic. Examples are illustrative. How our calculators work.

Let’s work it out.

31 days

2026-01-01 to 2026-02-01 · end date excluded

Step by step

  1. There are 31 midnight-to-midnight calendar days between these dates.
  2. The start date is included and the end date excluded. The same date gives zero days. Calendar counting ignores daylight-saving clock changes.

Results may be rounded. See the method and limitations below.

Your numbers stay in your browser.