Date difference calculator
Count calendar days between two dates.
Your result will appear here.
Enter your input, then run the tool.How to use the date difference calculator
Find out how many days separate two dates without counting on a calendar. The order does not matter; the tool always returns a positive number of days.
Enter both dates in YYYY-MM-DD form separated by a comma, for example 2026-01-01, 2026-12-31, and run the tool.
- The Input box starts with an example. Replace it with your two dates, each written YYYY-MM-DD, separated by a comma.
- Press Run tool.
- Read the number of days, for example “54 days”.
- Use Copy result or download the answer as a text file.
Good to know
- Counts whole calendar days in UTC, so the result is the same wherever you are.
- Both dates must be real calendar dates; 2026-02-30 is rejected.
- Leap days are included automatically.
- Weeks, business days, hours and minutes are not calculated.
- Everything is calculated in your browser; nothing you type is sent to HandyTechHelper.
Examples
- 2026-11-01, 2026-12-25 gives 54 days.
- 2024-02-28, 2024-03-01 gives 2 days, because 2024 has a 29 February.
- 2026-12-25, 2026-11-01 also gives 54 days; the order does not matter.
If something goes wrong
“Use YYYY-MM-DD dates.”
Write the year first with two-digit months and days: 2026-01-05, not 12/25/2026 or 2026-1-5.
“Invalid calendar date.”
The date does not exist, such as 2026-02-30 or 2026-04-31.
“Enter two dates separated by a comma.”
Put exactly one comma between the two dates.
Questions
Is the end date included?
No. From 2026-01-01 to 2026-01-02 is one day. Add one if you want to count both days.
Can I use 31/12/2026?
No. Dates must be written year-month-day, for example 2026-12-31.
How do I get weeks?
Divide the days by seven.
Next steps: Current time by time zone · Timestamp converter
