Date Difference Calculator

How many days between two dates?

View result ↓
01  InputUpdates as you type
02  ResultOn your device
Enter a value to see the result.

On your device

How to use

Choose the start and end dates. The default is the difference; include the start date to add one day.

Good to know

Calendar days are calculated in UTC, independent of time zones and daylight saving. Earlier end dates give a negative result.

Worked examples

Input

2024-02-28 → 2024-03-01

Expected result

2 days

Input

2024-02-28 → 2024-03-01 · Include start date (same date = 1 day)

Expected result

3 days

Input

2024-03-01 → 2024-02-28

Expected result

-2 days

How days between dates are counted

The tool compares calendar dates at midnight UTC. It counts elapsed days, not working days or hours, and does not subtract weekends or holidays. Local daylight-saving changes do not change the total.

From 2024-02-28 to 2024-03-01, the difference is 2 days because 2024 is a leap year. Include both dates to get 3 days. The same date gives 0 elapsed days or 1 inclusive day. Reversing the dates gives −2 days, or −3 with both dates included. Invalid dates are rejected.