Count the days between two dates

When values need comparing or a one-off calculation needs checking, this helps students, individuals and professionals. Count the days between two dates.

Count the days between two dates. The result appears instantly in your browser, ready to copy, with no account, upload or storage involved.

How to use

  1. Enter the first date in YYYY-MM-DD format.
  2. Enter the second date in the same format on the next line.
  3. Run the calculation to see the gap between the two dates.
  4. Read the result and decide whether you need the raw day count or another summary.

Example

To measure the period from 1 May 2026 to 15 August 2026, enter both dates. The answer can help with scheduling, billing periods or checking how much time remains before a deadline.

Input

2026-05-01
2026-08-15

Limits and formats

Where processing happens

The date difference is calculated in your browser. Both dates you enter stay on your device and are not uploaded or stored, so you can test several ranges without sending your data.

Frequently asked questions

Are both the start and end dates counted in the total?

The calculation reports the gap between the two supplied dates. If you need to count a period inclusively, you may have to add one day, especially when both the first and last day should be included.

What if the first date comes after the second?

The result may be negative or interpreted in reverse order. For a straightforward duration, put the earlier date first and review the answer before using it in a schedule or invoice.

Can I see the difference in weeks or months?

The tool focuses on the number of days. You can convert that figure yourself for weeks, but months are less exact because their lengths vary, so treat any monthly figure as an approximation.

Tools in the same category