IT Market
Tools/Math/Days Between Dates Calculator Online — Free
Калькулятор дней между датами

Укажите две даты и получите разницу в днях

Готово к расчёту

Tool guide

Days Between Dates Calculator

This calculator tells you how many calendar days sit between two dates and restates that span in whole weeks and in hours. Fill in the start and end date, and tick the inclusive option when both the first and the last day count towards the period — which is how leave, sick notes and business trips are counted. Shortcut buttons set today, swap the fields or clear them, and your dates stay on your device. See also: express the same date as a Unix timestamp, read a timestamp from a data export, count down to the deadline itself.

How to use it

  1. Set the start date with the browser's date picker, or press the «Today» button to drop in today.
  2. Set the end date: a project deadline, the day you return from leave, the date of an event.
  3. Tick the inclusive checkbox when both the first and last day belong to the period — the total grows by exactly one day.
  4. Press «Count the days» to see the answer in days, along with the same span in weeks and hours.
  5. If the number comes out negative, press «Swap» to swap the two dates around.
  6. «Copy» puts the result on the clipboard; «Clear» empties both fields for the next calculation.

FAQ

How do I count the days between two dates?

Fill in the start and end date fields and press the calculate button. The tool subtracts one from the other and reports the gap three ways: in days, in whole weeks plus a remainder, and in hours. The order of the fields only affects the sign of the answer — if the start date is later, use the swap button to put things right.

What does the inclusive counting checkbox change?

Left unticked, you get the plain difference: 1 July to 14 July is 13 days, because the first day is not counted. Tick it and one day is added, giving 14 — which is how the length of annual leave, a sick note, a business trip or a tenancy is normally worked out, since both the opening and closing day are chargeable.

Are leap years and 29 February taken into account?

Yes. The maths follows the real calendar rather than an assumed 365-day year, so 29 February is picked up automatically whenever it falls inside the range. That is why the same pair of dates in different years can give 365 or 366 days: 1 Jan 2024 to 1 Jan 2025 is 366 days, while the following year is 365.

Can it count working days only?

No, it counts consecutive calendar days, weekends and public holidays included. For a rough working-day figure, divide the result by seven and multiply by five, then subtract the public holidays that fall in the range according to your own country's calendar. There is no built-in holiday table.

Why is my result a negative number?

Because the end date comes before the start date — typically the deadline went into the top field and today's date into the bottom one. Press the swap button to exchange the two values and the figure turns positive. A negative answer is still useful: its size tells you how many days ago the second date fell.

How far into the past or future can the dates go?

The fields use the browser's standard date control, which happily accepts the nineteenth century as well as years beyond 2100; the only requirement is a four-digit year. So working out the age of a document, the countdown to a centenary or the number of days since a great-grandparent was born all work fine.

Does it work on a phone?

Yes, and arguably better there: tapping a date field opens the native scroll picker on iOS or the calendar sheet on Android, so it is hard to mistype a date. The today button saves a few taps, and the copy button drops the finished answer straight into a message or a note.

Examples

A two-week holiday
Before: 1 Jul 2026 → 14 Jul 2026, inclusive counting on
After: 14 days, exactly 2 weeks, 336 hours
Days left until New Year
Before: 6 Sep 2026 → 31 Dec 2026, inclusive counting off
After: 116 days, or 16 weeks and 4 days
A three-year retention period
Before: 15 Mar 2024 → 15 Mar 2027, inclusive counting off
After: 1095 days — three years, one of them a leap year