Date Difference Calculator
Calculate date difference from the values you enter.
About Date Difference Calculator
Counting the days between two dates comes up when checking a notice period, a warranty window, a visa stay limit, the length of a project, or how many days remain until an event. Counting on a calendar is slow and easy to get wrong across months of different lengths.
How it works
Choose a From date and a To date. The tool converts both to timestamps, subtracts them and divides by the number of milliseconds in a day, rounding to the nearest whole day. The result is a single figure such as '105 day(s)'. The end date is not counted as an extra day, so the count is exclusive of one end. If the To date is earlier, the result is negative. It does not break the gap into years, months and weeks, and it does not exclude weekends or holidays.
How to use Date Difference Calculator
- Complete the available fields: From, To. Use the field labels and examples shown in the workspace.
- Select “Run tool” and check the result before copying or downloading it.
Worked example
From 15 January 2026 to 30 April 2026: 16 days remain in January, then 28 in February, 31 in March and 30 in April. The tool shows '105 day(s)'.
Tips for a better result
- If you need to count both the start and end days, such as for a hotel stay or leave days, add 1 to the result.
- For working days only, subtract weekends and public holidays yourself, since the tool counts every calendar day.
- Fill in both dates. If one is missing, the tool asks you to choose both dates instead of showing a result.
Frequently asked questions
Does it include both the start and end date?
No. It measures the gap between the two dates, so 1 March to 2 March is 1 day. Add one if your rule counts both days, which is common for leave and some legal deadlines.
Why is my result negative?
The To date is earlier than the From date. Swap the two dates or ignore the minus sign; the number of days is the same.
Can it show the result in weeks or months?
No. It only reports total days. Divide by 7 for weeks. Months vary in length, so a months figure would need a calendar-based calculation like the Age Calculator uses.
What to check
Results depend on the inputs and formula shown. Estimates may omit fees, taxes or individual circumstances.
Read the Privacy Policy for information about local processing, connected services and advertising.