Everyday tool

Date Calculator

Compare two dates or move forward and backward from a starting date.

Runs in your browser. No upload.

Days between dates

—

Add or subtract days

—

Dates are calculated in your browser.

About this tool

Date Calculator made simple.

From January 1 to January 31 is 30 elapsed days because the starting date is not counted as a full day. You can also add or subtract a whole number of calendar days; weekends and public holidays are not excluded.

Guide

Using Date Calculator

The Date Calculator answers two plain questions about calendar days. How many days lie between two dates? And what date do you reach if you move a set number of days forward or back from a starting date? Choose dates in the date fields, then press Calculate dates to see the answer. It counts whole calendar days only, so weekends and public holidays are included. It does not know about hours, minutes or time zones. People use it for countdowns, notice periods, trip planning and checking deadlines on a calendar they already trust.

How to use it

  1. Select Between dates in the mode selector, then choose a Start date and an End date with the date pickers.
  2. Tick Count both dates only if you want the first day counted too. Leave it unticked for plain elapsed days.
  3. Press Calculate dates. The number of days appears in the result area below the form.
  4. Select Add or subtract in the mode selector to open the second form. Choose a Starting date, choose Add or Subtract in Direction, and enter zero or positive whole numbers for years, months, weeks or days.
  5. Press Calculate dates. The result appears below in a readable date format, with its year-month-day value alongside it.
  6. Press Reset to return to Between dates, set both dates to today, clear the Count both dates option and remove the result.

Worked examples

January 1 to January 31

You enter
Start
2026-01-01
End
2026-01-31
Count both
no
You get
Result
30 days
With count both
31 days

The start day is not treated as a full day, so thirty days have passed. Ticking the inclusive box counts January 1 as well and gives thirty-one.

Run through the tool’s own code.

Late February in a leap year and a normal year

You enter
Pair a
2028-02-28; 2028-03-01
Pair b
2027-02-28; 2027-03-01
You get
Pair a
2 days
Pair b
1 day

The year 2028 has a February 29, so there is one extra day in between. In 2027 February ends on the 28th and March 1 follows right away.

Run through the tool’s own code.

Dates entered in the wrong order

You enter
Start
2026-03-01
End
2026-01-01
Count both
no
You get
Result
59 days

The tool uses the size of the gap and shows a positive 59. The result panel also notes that the End date is earlier.

Run through the tool’s own code.

Thirty days after the end of January

You enter
Starting date
2026-01-31
Days to add
30
You get
Result
2026-03-02

February 2026 has 28 days. Moving 28 days reaches February 28 plus 2 more, which lands on March 2.

Run through the tool’s own code.

Going back 45 days

You enter
Starting date
2026-03-01
Direction
Subtract
Days
45
You get
Result
2026-01-15

Choose Subtract and enter 45 in Days. Going back 28 days reaches February 1, then 17 more days reaches January 15.

Run through the tool’s own code.

One year after a leap day

You enter
Starting date
2028-02-29
Days to add
365
You get
Result
2029-02-28

Adding 365 days is not the same as adding one year. Because 2029 has no February 29, the date lands on February 28.

Run through the tool’s own code.

When it helps

  • Count the days left until a holiday, an exam or a wedding.
  • Find the date a thirty-day return window or notice period ends.
  • Check how many days passed between an invoice date and a payment date.
  • Plan a trip by finding the date that is a fixed number of days before departure.
  • Work out the length of a project phase from its start and finish dates.
  • Look back from today to see what date was exactly 100 days ago.

Limits to keep in mind

  • It counts calendar days only. Weekends and public holidays are not removed, so it cannot answer working day questions.
  • Each amount must be zero or a positive whole number. Decimals and negative values are rejected; choose Subtract in Direction to move backward. A result outside the date range supported by the browser is rejected.
  • The day count is positive in either date order. When the End date is earlier, the result panel adds a note to make that clear.
  • When an input is not accepted, the previous result is cleared and an error message appears, so you never read a stale answer by mistake.
  • There is no time of day and no time zone. Two moments on the same date are always zero days apart.
  • The year-month-day result is shown in English format only. Check local rules, such as how a legal deadline is counted, before you rely on a date.

Tips

  • Decide first whether your rule counts the first day. A rental of the 1st to the 3rd is often two nights but three calendar dates.
  • Test the tool on a short span you can count on a paper calendar before you trust a long one.
  • To go forward exactly one month or one year, do not type 30 or 365. Move the month on a calendar instead.
  • If the two dates might be swapped, glance at the date boxes after you press the button, since the answer will not warn you.
  • For deadlines that exclude weekends, use a business days tool and keep this one for plain calendar counting.

UsefulVerse guides

All guides

Common questions

About Date Calculator.

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

Select Between dates, choose a Start date and an End date, then press Calculate dates. The result is the number of elapsed calendar days. By default the starting day is not counted as a full day.

Why is the answer one less than I expected?

Most likely you expected both end dates to count. The default result is elapsed days, so January 1 to January 31 is 30. Tick the box that counts both start and end dates to get 31.

What does the tick box change?

It adds one to the day count. Use it when your rule counts the first day as well, such as a booking that includes both the arrival and the departure date. Leave it off for simple elapsed time.

Can I use a negative number of days?

The amount fields accept zero or positive whole numbers. To move backward, select Add or subtract, choose Subtract in Direction, and enter an amount such as 45 in Days. Choose Add to move forward.

Does it skip weekends or holidays?

No. Every calendar day is counted, including Saturdays, Sundays and public holidays. For working days only, use a business days calculator where you can set your own weekend and list holidays.

Does it handle leap years correctly?

Yes. It uses real calendar dates, so February 29 exists in a leap year like 2028 and not in 2027. A span that crosses a leap day will be one day longer than the same span in a normal year.

What if I enter the end date before the start date?

The tool still works and shows the size of the gap as a positive number. The result panel also says when the End date is earlier, so check the two date fields if the result surprises you.

How is this different from a time duration calculator?

This one works with dates only and counts whole days. A time duration tool also takes hours and minutes and reports the gap in hours and minutes. Pick that one when the time of day matters.

Is my data sent anywhere?

No. The dates are worked out inside your browser on your own device, and nothing is uploaded to a server.

When should I not trust the result?

Do not rely on it alone for legal, tax or contract deadlines. Some rules count business days, exclude the first day or follow a local holiday calendar. Confirm the rule in the document or with the office involved.

How do I calculate days between two dates?

Choose a start date and an end date. By default, the result is elapsed days and does not count the start date as a full day; select the inclusive option to count both endpoints.

Does this count business days or holidays?

No. This calculator counts calendar days. Use the business-day calculator and add the holidays you want to exclude.

Can I add or subtract days from a date?

Yes. Enter a starting date and a whole number of days. Use a negative number to subtract days.

How many days are between January 1 and January 31?

There are 30 elapsed calendar days. The calculator does not count the starting date as a full day; counting both dates inclusively would give 31 calendar dates.

Can I add 30 days to a date or count business days?

Enter a starting date and 30 to find the date 30 calendar days later; use -30 to go back. Weekends and public holidays are included, so this is not a business-day calculator.