Skip to content
TextArray
100% local

Date difference calculator

Count the days, weeks, months and years between two dates, with weekdays and weekends.

Output

Date difference calculator

Enter two dates and get the full picture of the span between them: total days, the calendar breakdown in years, months and days, full weeks with the remainder, total hours and minutes, plus how many weekdays and weekend days the span contains and which day of the week each endpoint falls on. Everything recalculates the moment you edit a date.

The classic uses are everywhere: days until a deadline or a holiday, the length of a project phase, notice periods, visa windows, how long a subscription has run, the age of anything in days. The weekday and weekend counts answer the follow-up question most calculators skip — of those 89 days, how many are working days? By default the tool counts the difference exclusively, the way subtraction works: January 1 to January 2 is one day. Tick "Include the end date" for inclusive counting — useful for rental days, medication courses and any "both days count" agreement — and the note under the report reminds you the convention is on.

Dates are accepted as YYYY-MM-DD, YYYY.MM.DD, DD.MM.YYYY or DD/MM/YYYY; slash dates are always read day-first, never the American month-first way. If you enter the dates in reverse order they are quietly swapped, and the report says so. All arithmetic runs in UTC on pure calendar dates, so daylight-saving changes can never produce a 23-hour day or an off-by-one.

Like every TextArray tool, the calculation happens entirely in your browser — the dates you enter are never sent anywhere.

FAQ

What does "Include the end date" change?
It adds one day, switching from exclusive to inclusive counting. Exclusive is plain subtraction: January 1 to January 2 is 1 day. Inclusive counts both endpoints as full days — January 1 to January 2 becomes 2 days. Use inclusive for rentals, tickets and prescriptions where both days count.
Which date formats are accepted?
YYYY-MM-DD (ISO), YYYY.MM.DD, DD.MM.YYYY and DD/MM/YYYY. Slash dates are always parsed day-first: 05/03/2026 is 5 March, never May 3. If you mean a US-style month-first date, use the ISO form to be unambiguous.
How are weekdays and weekend days counted?
Every day in the span is classified: Saturdays and Sundays are weekend days, Monday to Friday are weekdays. Public holidays are not subtracted — they differ by country, so treat the weekday count as an upper bound on working days.
Do daylight-saving changes affect the result?
No. The tool works on pure calendar dates in UTC, so clock changes, time zones and 23- or 25-hour days never affect the count. The hours shown are exactly the day count times 24.
Are the dates I enter uploaded anywhere?
No. The calculation runs entirely in your browser and the dates never leave your device.