Date Difference Calculator
Calculate exact days, weekdays, weeks, and months between two dates.
About this tool
How many days until a deadline? How many working days does a contract notice period really give you? How old is someone in years, months and days? Counting on a calendar is slow and easy to get wrong around month ends, leap years and weekends. This calculator answers those questions instantly and shows its work.
It has two modes. Difference between dates gives the total days, the calendar difference in years, months and days, business days and weekend days, with your own weekend days and public holidays. Add / subtract finds the date that is a number of days, business days, weeks, months or years before or after another date. Dates are handled in your local calendar, so time zones and daylight-saving changes never shift the result by a day.
How to use Date Difference Calculator
- In Difference between dates, pick a start and an end date. Use Set Today, +30 Days or +1 Year for common cases, and the swap button to reverse them.
- Decide whether the start date counts. By default the tool counts the days after the start up to and including the end, like most deadline calculations. Tick Include the start date when both ends count, for example for a hotel stay or a leave request.
- For business days, choose which days are the weekend (Saturday and Sunday by default; Friday and Saturday in many Middle Eastern countries) and list public holidays, one YYYY-MM-DD date per line.
- In Add / subtract, enter a start date, choose + or −, an amount and a unit. Business days skip weekends and the holidays you listed. The result shows the weekday, ISO week number and day of the year.
Examples
Age in years, months and days
Start: 1990-05-20 End: 2026-11-14
36 years, 5 months, 25 days 13,327 days
Ten business days from a Thursday
Start: 2026-12-17 + 10 business days Holidays: 2026-12-25, 2027-01-01
2027-01-04 (Monday)
Weekends and the two holidays are skipped.
Month-end arithmetic
2026-01-31 + 1 month
2026-02-28
When the target month is shorter, the date is clamped to its last day instead of spilling into March.
How the counting works
Total days is the number of calendar days between the two dates. For example, from Monday to the following Monday is 7 days. With Include the start date it becomes 8, because both Mondays are counted.
The years-months-days result counts whole months first and then the remaining days, the same way ages and anniversaries are counted. A month is complete only when the day of the month is reached again, so 31 January to 28 February is 28 days, not one month. This matches the rule used by Java, .NET and most date libraries.
Business days are the counted days that are neither weekend days nor listed holidays. Holidays that fall on a weekend are not subtracted twice.
Common pitfalls with dates
- Off-by-one errors: decide up front whether a period includes its first day. Legal deadlines usually exclude it; booking and leave periods usually include it.
- Adding 30 days is not the same as adding a month. Use the month unit for billing cycles and subscriptions.
- Leap years: 2028 is a leap year, so 2028-02-29 exists, and adding one year to it gives 2029-02-28.
- Holidays differ by country, region and company; enter the ones that apply to you instead of relying on a generic list.
Frequently asked questions
Everything you need to know about this tool and data security.
Does the total include both the start and the end date?
By default it includes the end date but not the start date, which is how most deadlines are counted. Tick "Include the start date" to count both ends.
Can I exclude public holidays?
Yes. Paste the holiday dates in YYYY-MM-DD format, one per line or separated by commas. They are removed from business days in both modes; invalid lines are listed so you can fix them.
My weekend is Friday and Saturday. Is that supported?
Yes. Choose Fri + Sat, Sun only, or None (for seven-day operations) under Weekend days.
What is the ISO week number?
ISO 8601 numbers the weeks of the year from Monday to Sunday; week 1 is the week that contains the first Thursday of January. That is why 1 January can belong to week 52 or 53 of the previous year.
Is my data safe when using this tool?
Yes, 100% safe. This tool operates entirely inside your web browser using client-side JavaScript and WebAssembly. Your data never touches any external server.
Related Tools
Compare two texts side-by-side or unified to inspect additions, deletions, and modifications.
Create customizable QR codes from text or URLs and export as PNG.
Count words, characters, sentences and paragraphs as you type, with reading time, keyword density and common length limits.
Featured Projects tech-fun.net
Explore more AI & productivity tools
Nihongo GameBox
Master Japanese typing, Kana, and JLPT N5–N1 vocabulary through interactive retro arcade games.
ResumeGPT
Tailors CVs and cover letters to every job opportunity with a multi-agent LLM pipeline, job tracking, and scheduled discovery.
CollectMind
Turns your bookmarks into a searchable AI knowledge base — entirely on-device, powered by Chrome's built-in Gemini Nano.