Date Calculator

Count the days between two dates, or add and subtract days from a date.

Last updated 2026-11-28 · How we calculate this

Enter the Dates

Calculation

Use this for questions like "How many days until July 4?" or "How long ago was March 15, 2020?"

Pick any date from January 1, 1900 to December 31, 2200. It starts as today.
Pick any date from January 1, 1900 to December 31, 2200, on or after the start date.
Choose Yes when the first and last day both count, as in a 5-day event from Monday to Friday.
Choose Subtract to count back to an earlier date.
years
Whole years, from 0 to 200. Leave blank for none.
months
Whole months, from 0 to 2,400. Leave blank for none.
weeks
Whole weeks, from 0 to 10,000. Leave blank for none.
days
Whole days, from 0 to 100,000. Leave blank for none.

Your Result

Choose your dates.

The calculator counts whole calendar days in the Gregorian calendar for dates from 1900 to 2200. It doesn't skip weekends or holidays, and it ignores time of day and time zones. "Today" is the date on your own device. Months and years are added by the calendar, with the end-of-month rule above. Legal, contract and payroll deadlines can follow their own counting rules, so check the document that sets them.

Quick Answer

To count the days between two dates, subtract the earlier date from the later one: from November 24, 2026 to December 25, 2026 is 31 days. Add 1 if both the first and the last day count. To find a date ahead, add the days to the start date, carrying over into the next month and year as you go.

How to Use This Calculator

Choose whether you want the gap between two dates or a new date. For the gap, pick a start date and an end date, and decide whether the end date counts too. The answer comes in days, then in weeks, and in months or years with the days left over. To find a new date, pick where to start, choose Add or Subtract, and fill in any mix of years, months, weeks and days.

Both dates start as today, which makes countdowns quick: leave the start date alone and set the end date to the day you're waiting for. Leap years and the different month lengths are handled for you, so a span that crosses February 29 comes out right.

  1. Choose what you want to find.
  2. Pick the start date, or leave it as today.
  3. Pick the end date, or enter the years, months, weeks and days to add or subtract.
  4. Read the result in days, weeks and months, or the new date with its weekday.

The Formula

Days between = end date − start date (+ 1 to count both dates). New date = start date + years and months, then + weeks × 7 + days.

The calculator turns each date into a running count of days, so subtracting one from the other gives the exact gap, whatever lies between: short months, long months or a leap day. Weeks are the days divided by 7. For months, it counts whole calendar months from the start date first, then the days left over. Adding a month moves to the same day number in the next month; if that day doesn't exist, it stops at the month's last day.

Worked Example

From Tuesday, November 24, 2026 to Friday, December 25, 2026 is 31 days. That's 4.4286 weeks, or 4 weeks and 3 days, or 1 month and 1 day.

A whole year: January 1 to December 31, 2026 is 364 days, or 365 when you count both dates, because 2026 isn't a leap year.

Going forward: 90 days after November 24, 2026 is Monday, February 22, 2027. Going back: 6 weeks before March 1, 2027 is Monday, January 18, 2027.

A longer span: from March 15, 2020 to November 24, 2026 is 2,445 days, or 6 years, 8 months and 9 days.

Frequently Asked Questions

Should I count the first day, the last day or both?

It depends on the question. For "how long until" or "how long since", count the days in between, which is the default here. For something that runs from one date through another, such as a booking or a leave request, both days count. June 1 to June 30 is 29 days between the dates but 30 days counting both.

How do I work out a deadline such as "within 30 days"?

Federal courts in the US skip the day of the event, count every day after it including weekends and holidays, and include the last day. If that last day is a Saturday, Sunday or legal holiday, the deadline moves to the next working day. Thirty days after November 24, 2026 is Thursday, December 24, 2026. Contracts and other rules can count differently, so check the wording.

How many days are in a year?

365, or 366 in a leap year. A year divisible by 4 is a leap year, except century years, which must also divide by 400. So 2000 was a leap year, 1900 wasn't, and 2100 won't be. February 1 to March 1 is 29 days in 2028 but 28 days in 2027.

What happens when I add a month to January 31?

You get the last day of February: February 28, 2027, or February 29, 2028. February has no 31st, so the calculator stops at the end of the month rather than spilling into March. Some software rolls over to early March instead. If you need an exact count, add days rather than months.

Does the calculator count weekends and holidays?

Yes. It counts every calendar day. To count working days instead, use the Business Days Calculator, which skips weekends and any holidays you enter. The US has 11 federal holidays a year, and when one falls on a Saturday or Sunday, federal workers usually get the Friday before or the Monday after off.

Does daylight saving time change the count?

No. The calculator counts calendar days, not 24-hour blocks. March 13 to March 15, 2027 is 2 days, even though the clocks go forward on Sunday, March 14, making that day only 23 hours long.

Sources: U.S. Naval Observatory, Leap Years; Federal Rules of Civil Procedure, Rule 6: Computing and Extending Time (Cornell Law School LII); U.S. Office of Personnel Management, Federal Holidays