Days Between Dates Calculator

Count the days between two dates, plus the same gap in years, months, weeks, weekdays and hours. Choose whether the end date is included. Fast, free, and built for simple browser-based workflows.

Instant
Processing
Private
Browser First
Free
No Signup

Days Between Dates Calculator

or Ctrl+Enter

Counted in this browser tab. The dates you pick are not sent anywhere.

Need to add days to a date instead? Date Calculator

Difference

Pick a start date and an end date, or try the example.

Advertisement

728 x 90 In-Content Ad

About This Tool

Days Between Dates Calculator is a free online tool that counts the number of days from one calendar date to another. Pick a start date and an end date, and it shows the total days and the same gap broken into years, months and weeks, with a note saying whether the end date was counted.

Reach for it when a deadline, a contract or a trip is described in days: how long a notice period runs from the day it started, how many weeks a project has left before launch, or how many months a lease has been running. It also settles the questions that make counting by hand go wrong, such as whether January 31 plus one month lands on February 28, or whether a range that crosses February 29 gains a day.

The count happens inside your browser with plain whole-number arithmetic, so no date you pick is sent to a server, and the page keeps working offline once it has loaded. Because it counts calendar days rather than clock hours, a daylight-saving change can never turn a result into 29.96 days, and any date from the year 1 to 9999 gives an exact answer.

Shows the same gap seven ways, from total days to years, months and days, each with its own copy button
An Include the end date option that adds the final day to every result, remembered for your next visit
A rule note under each result names the counting rule used, including month ends such as Jan 31 + 1 month = Feb 28
Splits any range into weekdays (Monday to Friday) and weekend days
Today buttons for either date, a Swap button, and plain wording when the end date comes before the start
Exact for any date from the year 1 to 9999, with leap years counted and daylight saving never changing a result

How to Use Days Between Dates Calculator

1

Pick the start date

Choose a date in the Start date field, or click Today beside it. Try an example fills in a range that crosses February 29, so you can see how the count works.

2

Pick the end date

Choose the End date the same way. The result appears as soon as both dates are set. If the end date is earlier, the gap is counted backwards and the Swap button is highlighted.

3

Decide whether the end date counts

Leave Include the end date unticked to count the gap between the dates (Jan 1 to Jan 2 is 1 day), or tick it to count both dates (2 days). Your choice is kept for next time.

4

Read and copy the result

The large number is the total in days. The rows below give the same gap in years, months, weeks, weekdays and hours. The copy button beside a row copies just that value, and Clear empties both dates.

Frequently Asked Questions

Is this tool completely free?

Yes! All our tools are 100% free to use with no hidden costs, no registration required, and no credit card needed.

Is my data safe and private?

Absolutely. All tools run entirely in your browser (client-side). Your data never leaves your device and is not sent to our servers.

Can I use this tool offline?

Yes, once the page is loaded, the tool will continue to work even if you lose internet connection since it runs in your browser.

Can I use this for commercial projects?

Yes! All our tools are free for both personal and commercial use.

Does the count include the end date?

Not by default. It counts from the start date up to the end date, so January 1 to January 2 is 1 day. Tick Include the end date to count both days, which adds 1 to every result. Leave it unticked for a gap such as nights in a hotel, and tick it for a span such as a conference including its last day.

How are months counted when the start date is the 31st?

Months are counted from the start date, and when that day does not exist in a later month, the month's last day is used. So January 31 to February 28 is 1 month, and January 31 to March 1 is 1 month and 1 day. Spreadsheet functions such as EDATE add months the same way, and the result note shows the rule whenever it applies.

Are leap years included in the count?

Yes. Every February 29 inside the range is counted, using the Gregorian rule: a year divisible by 4 is a leap year, except century years not divisible by 400. So February 28 to March 1 is 2 days in 2024 but 1 day in 2023, and 2000 was a leap year while 1900 was not.

What happens if the end date is before the start date?

You still get the full count, worded the other way round: the result says the end date is a number of days before the start date, instead of showing a minus sign. The Swap button is highlighted, and clicking it exchanges the two dates so the range runs forward.

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

Read the Weeks and days row, which splits the total into whole weeks plus the days left over, such as 4 weeks, 2 days for a 30-day gap. The Total weeks row gives the same gap as a decimal, 4.29 weeks, which is handy for a spreadsheet or a report.

Can daylight saving time change the number of days?

No. The tool counts calendar dates, not clock hours, so a range across a daylight-saving change still comes out in whole days. The hours row multiplies the days by 24 and says so, which means it is one hour off the real elapsed time for a day when the clocks change.

Does it count weekdays and weekends separately?

Yes. The Weekdays and weekend days row splits the range into Monday-to-Friday days and Saturdays and Sundays, using the same end-date rule as the total. It does not skip public holidays, so treat the weekday figure as a plain Monday-to-Friday count.

How far back or forward can I count?

Any date from January 1 of the year 1 to December 31 of the year 9999 works, so the longest count is 3,652,058 days. Dates before 1582 use the modern Gregorian calendar extended backwards, so they can differ from dates written in old Julian-calendar records.

Can I count the days from a past date to today?

Yes. Pick the past date as the start date, then click Today beside the End date field. Today means your own local date, taken from your device's clock, so the count is right for where you are. If your device's date is set wrong, the result will be wrong too.

How do I calculate days between dates in Excel?

Subtract the earlier date from the later one, for example =B1-A1, and format the cell as a number. That matches this tool with Include the end date unticked; add 1 to count both dates. DATEDIF(A1,B1,"m") gives whole months, while this calculator shows years, months, weeks and weekdays with no formulas.