Date Calculator

Calculate the exact difference between two dates in years, months, and days. Add or subtract days (including business days only). Calculate your age. Find the next weekday. Free, instant, 100% client-side.

Did we solve your problem today?

How to Calculate the Difference Between Two Dates

Enter any two dates in the Date Difference tab and the tool instantly calculates the exact gap in years, months, and days — using calendar month arithmetic, not just a raw day count. You also see the total number of days, total hours, and business days between the two dates. Click Swap ⇆ to flip the direction without retyping.

How to Add or Subtract Days from a Date

The Add / Subtract tab takes any starting date and a number of days (enter a negative number to go backwards). Enable Business days only to skip weekends — useful for calculating delivery deadlines, contract terms, or SLA expiry dates.

Examples:

Age Calculator

Enter a date of birth in the Age Calculator tab to see the exact age in years, months, and days as of today (or any reference date you choose). The calculation accounts for leap years. If you were born on February 29, the tool treats March 1 as your birthday in non-leap years — consistent with most legal and HR systems.

Find the Next Weekday

The Next Weekday tab calculates when the next occurrence of a chosen weekday falls after a given date. If the start date is already the selected weekday, the tool returns the same weekday next week (strictly the next occurrence). This is useful for scheduling recurring events or finding the next Monday, Friday, or any other specific weekday.

How Calendar Month Arithmetic Works

Raw day subtraction (e.g. 31 days × number of months) does not align with how humans think about time. This tool uses calendar month arithmetic:

From+ N monthsResult
January 31+ 1 monthFebruary 28 (or 29 in a leap year)
March 31+ 1 monthApril 30
January 15+ 2 monthsMarch 15

The remaining days are counted from the calendar-adjusted anchor point. So January 31 to March 1 is 1 month and 1 day — not 29 raw days expressed as a fraction of a month.

Business Days vs. Calendar Days

The distinction matters in legal, financial, and HR contexts:

ScenarioCalendar DaysBusiness Days
Friday to Monday3 days1 day
Friday + 5 daysWednesday (next week)Friday (next week — Mon+Tue+Wed+Thu+Fri)

This tool counts Monday through Friday as business days. Public holidays are not factored in as they vary by country and region.

Date Format

All date inputs use ISO 8601 format (YYYY-MM-DD), the international standard that avoids ambiguity between DD/MM/YYYY (Europe) and MM/DD/YYYY (United States). Most browsers render date fields with a calendar picker for easy selection.

Privacy

All calculations run in your browser using JavaScript’s built-in Date API. No dates or personal information are ever sent to a server or stored anywhere. The tool works offline once the page has loaded.

FAQ

How does the date difference calculator handle months and years?

The tool uses calendar month arithmetic: 1 month from January 31 is February 28 (or 29 in a leap year), not March 3. This matches how humans naturally count months. The remaining days are then counted from that anchor point, so January 31 to March 1 is reported as 1 month and 1 day.

What counts as a business day?

Business days are Monday through Friday. Saturday and Sunday are skipped when the "Business days only" option is enabled. The tool does not account for public holidays.

How is age calculated for people born on February 29?

In non-leap years, the birthday is treated as March 1. This is consistent with most legal and HR systems. The calculator uses the same calendar month arithmetic as the date difference tool.

Is my data sent to a server?

No. All calculations run entirely in your browser using built-in JavaScript date arithmetic. No dates or personal information are ever sent to a server or stored anywhere.

What is ISO 8601 date format?

ISO 8601 is the international standard for representing dates as YYYY-MM-DD — for example, 2024-06-15. This unambiguous format avoids confusion between European (DD/MM/YYYY) and US (MM/DD/YYYY) conventions. All date fields in this tool use ISO 8601.