Skip to content
MyToolkit.pro

Date & Time

Date Difference

Choose two dates to see an exact calendar breakdown and elapsed totals. Swap the dates or include the end date when your counting rule requires it.

Private by design: both dates are processed only in this browser.

Compare dates

Counting options

Examples

Date difference

Exact calendar breakdown.

—

years

—

months

—

days

Total days
—
Total weeks
—
Total hours
—

Exact method, not an approximation

The calendar breakdown takes the largest whole years, then months, without passing the end date; month-end values are clamped to the last valid day. Remaining time is shown in days. Totals use UTC calendar days. Business days count Monday through Friday and do not account for public holidays.

How to count the days between two dates

  1. Pick the two dates in Start date and End date. You can enter them in either order. The result and the From/To lines in the summary always run from the earlier date to the later one.
  2. Under Counting options, decide whether the last day counts. Without Include the end date, 1 March to 31 March is 30 days. With it, the same range is 31 days and the breakdown becomes exactly 1 month.
  3. Tick Count business days if you need working days. A separate Business days card appears with the number of Mondays to Fridays in the range.
  4. Results update whenever a date or option changes, and Calculate difference runs the same calculation on demand. The ⇄ button (Swap dates) swaps the two fields.
  5. Use Copy result to copy the plain-text summary for an email, ticket or spreadsheet note. It includes From, To, the calendar breakdown, Total days, Total weeks, Total hours and, if enabled, Business days.

Worked examples

All figures below come from the tool's own calculation:

Start End Options Years / months / days Total days Business days
2024-01-31 2024-03-01 none 0 / 1 / 1 30 —
2024-02-29 2025-03-01 none 1 / 0 / 1 366 —
2026-07-06 2026-07-10 end included, business days 0 / 0 / 5 5 5
2026-11-11 2026-12-25 business days 0 / 1 / 14 44 32
1990-05-15 2026-11-11 none 36 / 5 / 27 13329 —

The second row shows how leap days are handled. A year after 29 February 2024 lands on 28 February 2025, because February 2025 has no 29th. That makes 1 March 2025 one year and one day later, and the total is 366 days because the range includes 29 February itself. The last row works as an age calculation: date of birth as the start, today as the end, end date left out.

Total weeks are total days divided by 7, shown with up to four decimal places. For the first row the summary reads Total weeks: 4.2857. Total hours are total days multiplied by 24, so 720 for that row.

When the end date should be included

Whether to count the end date depends on what you are measuring:

  • Elapsed time, such as age, how long ago something happened or the number of nights in a hotel stay: leave the end date out. 6 July to 10 July is 4 days, or 4 nights.
  • Durations where both the first and last days count, such as a holiday booked from Monday to Friday, a contract running "from 1 March to 31 March inclusive" or a 5-day course: tick Include the end date, as in the third table row.
  • Countdowns to a deadline or event: leave it unticked, as in the fourth row (Christmas 2026, counted from 11 November). The 44 days include today but stop before the event day. If you want only the full days in between, excluding today, subtract one: 43.

When both dates are the same, the result is 0 days without the option and 1 day with it.

Month ends, time zones and what the counts ignore

"1 month" depends on the start day. When that day doesn't exist in the target month, the tool uses that month's last day instead. As a result, 2026-01-30 → 2026-02-28 and 2026-01-31 → 2026-02-28 both come out as 1 month, 0 days, even though their totals are 29 and 28 days. If you need a precise figure for interest, notice periods or SLAs, use Total days rather than the month count.

Every day is counted as a whole calendar day, whatever your time zone or daylight saving time. A range spanning a clock change still shows 24 hours per day. To measure the actual elapsed hours between two moments with clock times, convert both to Unix time with the Timestamp Converter, or line up the local times with the Timezone Converter. The article Why Your Recurring Meeting Moved by an Hour explains why the hour counts differ.

The business day count skips Saturdays and Sundays only. It doesn't know about public holidays, company closures or countries with a different weekend, so subtract those yourself. A range that falls entirely on a weekend, such as Saturday 14 to Sunday 15 November 2026, gives 0 business days. Dates must fall between year 1 and 9999. If only one field holds a complete date, the tool shows "Choose two valid dates." and computes nothing.

Frequently asked questions

How many days are there from today until a date?

The tool has no Today button, so enter today's date as the start date yourself and the target date as the end date. On 11 November 2026, for example, 1 January 2027 is 51 days away.

Is 1 month always 30 days?

No. A month here is a calendar month, so its length in days depends on where it starts. 1 February to 1 March 2026 is exactly 1 month but only 28 total days, while 1 July to 1 August 2026 is also 1 month and 31 total days.

Why does another calculator give me one day more?

It probably counts both the start and end day. 1 to 30 November 2026 is 29 days here by default and 30 days with Include the end date ticked, so turn the option on to match an inclusive count.

How many working days are in a month?

Enter the first and last day of the month, tick Include the end date and Count business days. December 2026 gives 23 business days and November 2026 gives 21, before you subtract any public holidays.

Can I add or subtract days from a date with this tool?

No. It only measures the gap between two dates you enter and doesn't produce a new date from a number of days.

All in Date & Time

Timestamp Converter

Convert Unix timestamps to UTC dates and ISO dates to Unix seconds in your browser.

Date & Time In your browser

Timezone Converter

Convert a date and time between IANA timezones in your browser, with correct daylight saving handling. Nothing is uploaded.

Date & Time In your browser

Percentage Calculator

Solve four common percentage calculations with dedicated fields, formulas and clear interpretations.

Calculators In your browser

Lines, words & characters counter

Count lines, words, Unicode characters, UTF-8 bytes, paragraphs and reading time locally in your browser.

Text & Lists In your browser

PESEL Validator

Validate a Polish PESEL number, including its checksum, encoded birth date and gender digit.

Polish identifiers In your browser

Simple Calculator

Calculate basic arithmetic expressions with addition, subtraction, multiplication and division.

Calculators In your browser

What do you need?

Swipe up for the next one