Free Online Calculator

Date Calculator

Find the gap between two dates, or add and subtract days, weeks, months and years from a date.

Last updated: Free, no sign-up Private — runs in your browser

Quick answer: how to find the days between two dates

Subtract the earlier date from the later one. 15 January 2024 to 20 March 2026 is 795 days, or 2 years, 2 months and 5 days. To add time, move the years and months first, then the days.

Overview of the Date Calculator

The Date Calculator does two jobs. It measures the time between two dates — as years, months and days, as a total number of days, weeks and hours, and as a count of weekdays — and it adds or subtracts years, months, weeks and days from a start date to give a new date.

People use it for notice periods and probation ends, loan and lease dates, project deadlines, pregnancy and event planning, warranty expiry and legal time limits. Everything runs in your browser. To count days with options such as excluding weekends use the Day Counter; to find which weekday a date falls on use the Day of the Week Calculator.

How We Calculate Dates

Dates are converted to whole days at UTC midnight so daylight saving never adds or removes a day, and months are handled with the calendar rather than a fixed 30 days.

  1. Difference: count whole months from the earlier date using the same day of the month; if that day does not exist (for example the 31st in a 30-day month) the month's last day is used. The leftover days are counted from that anniversary.
  2. Total days: the exact number of days between the two dates (the end date is excluded unless you tick “include”).
  3. Weekdays: every full week contains 5 weekdays; the remaining days are checked one by one.
  4. Adding or subtracting: years and months are applied first (clamping to the month's last day), then weeks and days.
difference = whole months from the start date + leftover days
total days = (end date − start date) ÷ 86,400,000 ms
new date = start date ± years/months (clamped) ± days
Worked examples (calculated with this tool)
CalculationResult
Days between 15 Jan 2024 and 20 Mar 20262 years, 2 months, 5 days — 795 days in total
Days between 1 Jan and 31 Dec 20260 years, 11 months, 30 days — 364 days in total
29 Feb 2000 to 28 Feb 202525 years, 0 months, 0 days
31 Jan 2026 + 1 monthSaturday, 28 February 2026
15 Mar 2026 + 90 daysSaturday, 13 June 2026
15 Mar 2026 − 1 year 2 months 1 week 3 daysSunday, 5 January 2025

Months and Leap Years

Months have 28 to 31 days, so “one month later” is not a fixed number of days. Adding one month to 31 January gives 28 February (29 in a leap year). A year has 365 days, or 366 in a leap year — a year divisible by 4 is a leap year, except century years not divisible by 400 (1900 was not; 2000 was).

Month lengths
MonthsDays
January, March, May, July, August, October, December31
April, June, September, November30
February28 (29 in a leap year)

Date Calculator — Frequently Asked Questions

How do I calculate the number of days between two dates?

Subtract the earlier date from the later one. Enter both dates in the first calculator to get the exact days, plus the same gap as years, months and days.

Is the end date included in the count?

Not by default: the count runs from the start date up to the end date. Tick “Include the end date” to count both days, which adds one.

How do I add days to a date?

Use the second calculator: choose the start date, select Add, enter the number of days (or weeks, months, years) and press Calculate.

What is 90 days from a date?

Enter the date, choose Add and type 90 in the Days box. For example, 15 March 2026 plus 90 days is 13 June 2026.

How does the calculator handle months of different lengths?

It uses calendar months. If the target month is shorter, the result is clamped to its last day — 31 January plus one month is 28 February (29 in a leap year).

How many weekdays are between two dates?

The “Weekdays (Mon–Fri) in the range” row counts Monday to Friday only. It does not know about public holidays.

How many weeks between two dates?

Divide the total days by 7. The “Weeks and days” row does this for you, for example 795 days is 113 weeks and 4 days.

Can I subtract time from a date?

Yes. Choose Subtract in the add/subtract calculator and enter the years, months, weeks and days to go back.

What range of dates is supported?

Years 1 to 9999 in the Gregorian calendar. Dates before 1582 are shown using the same calendar rules projected backwards.

Does it account for daylight saving or time zones?

No — it works with calendar dates only, so there are no time-of-day or time zone effects. For clock times across zones use the Time Zone Calculator.

Is my data stored?

No. All calculations happen in your browser and nothing is uploaded or saved.

More Free Calculators You May Need

Need a custom calculator or tool on your website?

Our team designs and develops fast, SEO-ready websites and web tools. Tell us what you need.

Call Us WhatsApp

Get a Free Quote

Tell us a bit about your project — we'll get back to you shortly.

8 + 8 =
Call WhatsApp