Home › Calculators & Converters › Date Calculator

Date Calculator

Count the days between two dates, or add or subtract days from a date. Results use the Gregorian calendar and whole-day arithmetic, so time zones and daylight saving never change the answer.

What do you want to calculate?
Enter two dates.
Days, first to second (signed)-
Calendar difference (earlier to later)-
Weekday of first date-
Weekday of second date-
Dates are whole days on the proleptic Gregorian calendar, which is applied to every year from 1 to 9999. Dates must fall in that range. Everything runs in your browser; no dates are sent or stored.

How to use

The calculator has two modes, chosen with the radio buttons at the top.

Days between two dates

  1. Select Days between two dates.
  2. Pick the First date and the Second date.
  3. Read the signed day count, the calendar difference in years, months and days, and the weekday of each date.

Add or subtract days

  1. Select Add or subtract days.
  2. Pick a Start date.
  3. Type a whole number of days. Use a minus sign, such as -14, to go backwards.
  4. Read the result date and its weekday, with the weekday of the start date for comparison.

Worked examples

Counting a wait. From 15 January 2026 to 25 December 2026 is 344 days. The calendar difference is 11 months, 10 days: 15 January plus 11 months is 15 December, and 10 more days reach 25 December. The first date is a Thursday and the second is a Friday. Swap the dates and the day count becomes -344, while the calendar difference stays the same, because it always measures from the earlier date to the later one.

Setting a deadline. Start on Monday 30 March 2026 and add 90 days. The result is 28 June 2026, a Sunday. A 90 day deadline that lands on a weekend is a reminder that this tool counts calendar days, not working days.

StartDaysResult
2024-02-28+22024-03-01 (2024 is a leap year, so 29 February exists)
2026-02-28+22026-03-02
2026-07-04-1002026-03-26, a Thursday

How it works

Every date is turned into a count of days since a fixed day (1 January 1970), using the standard rules of the Gregorian calendar. Once dates are plain integers, the arithmetic is simple, and the result is turned back into year, month and day.

days between = day number of second date - day number of first date
result date  = date from (day number of start + days)
weekday      = (day number + 4) mod 7, with 0 as Sunday

Calendar difference. This runs from the earlier date to the later one. Whole months are added to the earlier date, keeping its day of the month. If that day does not exist in the target month, the last day of that month is used. The years and months are the most whole months that do not pass the later date, and the days are what remain. For example, 31 January 2026 to 28 February 2026 is 1 month and 0 days. 2020-01-31 to 2020-03-01 is 1 month and 1 day.

Calendar days, not working days. Weekends and public holidays are counted as normal days. The tool works only with calendar dates, with no time of day and no time zone, so daylight saving cannot change an answer. It applies the Gregorian rules to every year from 1 to 9999, even years before the calendar was adopted. That is called the proleptic Gregorian calendar.

Leap years

A year is a leap year if it divides by 4, except years that divide by 100 but not by 400. So 2024 and 2000 are leap years, and 1900 and 2100 are not. The tool applies this rule everywhere, which is why adding 2 days to 28 February gives 1 March in 2024 but 2 March in 2026.

Common mistakes

Frequently asked questions

How many days until a date?

Put today's date as the first date and the target as the second. The signed count is positive for a future date.

How do I find the date 30 days from now?

Choose Add or subtract days, pick today as the start and enter 30.

Why do the day count and the month count differ so much?

They answer different questions. The day count is the exact number of days. The calendar difference counts whole months first, and months have 28 to 31 days.

Does it handle time zones?

It does not need to. It works on dates only, so the answer is the same anywhere. For a time of day across zones, use the Time Zone Converter.

Is anything saved?

No. The dates stay in your browser.

Related tools