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.
Counted in this browser tab. The dates you pick are not sent anywhere.
Difference
Pick a start date and an end date, or try the example.
728 x 90 In-Content Ad
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.
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.
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.
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.
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.
Yes! All our tools are 100% free to use with no hidden costs, no registration required, and no credit card needed.
Absolutely. All tools run entirely in your browser (client-side). Your data never leaves your device and is not sent to our servers.
Yes, once the page is loaded, the tool will continue to work even if you lose internet connection since it runs in your browser.
Yes! All our tools are free for both personal and commercial use.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.