Smekys
Ad Space

Date Calculator

Free date calculator: count the days between two dates, add or subtract days, and instantly see the result date, weekday, and elapsed years/months/days.

Enter Values

year

Four-digit start year (e.g. 2026).

month

1 = January, 12 = December.

day

Day of month, 1 through 31.

year

Four-digit end year (e.g. 2026).

month

1 = January, 12 = December.

day

Day of month, 1 through 31.

days

Positive moves the start date forward; 0 leaves it unchanged.

Result

Days Between Dates
364
Result Date (Start + Offset)
January 1, 1970
Result Weekday
0
Weeks Between
52
Elapsed Time (Years / Months / Days)
0

Working out the gap between two dates sounds trivial until you actually try it in your head. Months have different lengths, leap years throw in an extra day, and "90 days from today" rarely lands on the date you guessed. This date calculator does the arithmetic for you in both directions: it counts the whole days between any two calendar dates, and it adds or subtracts a number of days from a starting date so you know exactly what calendar date you land on.

Type two dates and the result updates instantly. Add a days-offset value and you get the resulting date, its weekday, and a friendly years / months / days breakdown — whether you are planning a project deadline, counting down to a move, checking a rental lease, or figuring out how old a contract really is.

How to Use

  1. Enter a Start Date in YYYY-MM-DD format. This is the earlier date, and it also acts as the base date when you add or subtract days.
  2. Enter an End Date. The calculator counts the whole 24-hour days from the start date to this date. The order does not matter — the result is always the positive gap.
  3. Set Days to Add to shift the start date. Type a positive number to move forward in time, a negative number to move backward, or leave it at 0 to keep the start date unchanged.
  4. Read the result card: Days Between Dates is the headline gap, Result Date is the start date plus your offset, and Result Weekday tells you whether that date falls on a Monday or a Saturday.
  5. Use Weeks Between and the Elapsed Time (Years / Months / Days) line when you want the gap expressed in months and years rather than a raw day count.

The engine treats every date as a real Gregorian calendar date. It automatically accounts for 28-, 29-, 30-, and 31-day months and for leap years, so you never have to remember whether February has 28 or 29 days in a given year.

How Date Arithmetic Works

Counting days between two dates is just subtraction on the calendar. In programming terms, each date is stored as the number of days since a fixed epoch, so:

daysBetween = | endDate − startDate |

Adding days is the reverse operation:

resultDate = startDate + offsetDays

Because the calculation uses real calendar arithmetic rather than assuming every month is 30 days, the answer is exact. For example, from January 1, 2026 to December 31, 2026 there are exactly 364 days — not 365 — because you are counting the 24-hour intervals between the two dates, and the start date itself is the zero point. Adding 90 days to January 1, 2026 lands on April 1, 2026, which is a Wednesday.

The years / months / days breakdown is slightly different from a pure day count. It walks forward month by month from the start date, respecting the real length of each calendar month, then adds the leftover days. That is why "1 year and 10 months" can describe a span that is also 364 days — the two views answer different questions, and this calculator shows both.

Examples

Example 1 — A one-year service contract. A small business signs a $4,800 annual maintenance agreement that runs from January 1, 2026 to December 31, 2026. Entering those two dates shows 364 days between them, or about 52.0 weeks. That works out to roughly $13.19 per day of coverage — a useful figure when the client asks for a partial refund after an early cancellation.

Example 2 — A deposit deadline. A couple signs a purchase agreement and must pay a 30% earnest-money deposit within 90 days of the signing date. If they sign on January 1, 2026, setting Days to Add to 90 returns April 1, 2026 (Wednesday). They now have a firm calendar date rather than a vague "end of March," and they can schedule the wire transfer well before the weekend.

Example 3 — Subtracting days. A freelancer must deliver a draft exactly 14 working days before a launch on June 15, 2026. Setting the start date to June 15, 2026 and Days to Add to -14 backs the date out to June 1, 2026. Negative offsets are just as valid as positive ones — the same engine runs in reverse.

Example 4 — A long span. A retirement projection runs from January 1, 2000 to a target 1,000,000 days later. The calculator handles spans far beyond a human lifetime without rounding: the result lands on November 28, 4737, a Sunday. Large offsets like this are a stress test for any date tool, and this one keeps the full precision.

FAQ

How many days are there between two dates?

The calculator subtracts the earlier date from the later date and reports the number of whole 24-hour intervals between them. From January 1, 2026 to December 31, 2026 the answer is 364 days; from March 10 to March 12 it is 2 days. The start date itself is not counted, because it is the zero point.

How do I add days to a date?

Enter the base date as the Start Date, then set Days to Add to the number of days you want to move forward. A positive number goes forward, a negative number goes backward. Adding 90 days to January 1, 2026 gives April 1, 2026; subtracting 90 days gives October 3, 2025.

Does the calculator account for leap years?

Yes. It uses real Gregorian calendar arithmetic, so February 29 exists in leap years and does not in common years. A span that crosses February 29, 2024 automatically includes that extra day, and a span that does not crosses a normal 28-day February.

What is the difference between "days between" and "years / months / days"?

Days between is an exact, unrounded count of 24-hour intervals. The years / months / days breakdown walks through real calendar months, which have unequal lengths, so it is the more human-friendly way to say "about one year and ten months." The raw day count and the monthly breakdown will not always multiply out perfectly, and that is expected.

Why is a full year 364 days here instead of 365?

When you measure from January 1 to December 31 of the same year, you are counting the intervals between them. January 2 is one day after January 1, and December 31 is the 364th interval after January 1. If you instead count both endpoints as inclusive days, the span is 365 calendar days. This calculator reports the difference (364), which is the convention used by scheduling, billing, and day-count software.

Can I use a negative number of days?

Yes. Enter a negative value in Days to Add to move the start date backward in time. This is handy for backing into deadlines, estimating ages, or finding what date was N days before a known future event.

Disclaimer

This date calculator is provided for informational purposes only. It performs standard Gregorian calendar arithmetic and is not a substitute for legal, contractual, or payroll-specific day-count conventions, which may follow different rules (such as 30/360 or actual/actual interest calendars). Always confirm critical dates against your contract, payroll system, or calendar before relying on them for a binding commitment.

Related Calculators

Disclaimer

Results are estimates for illustration only. Verify important figures independently.