Home › Date Calculator

Count Days Between Dates

Count the exact number of days between any two dates, with weekday and weekend breakdown.

Counting days between two dates by hand is fiddly: months have different lengths, leap years lurk, and calendars don't do the arithmetic for you. This calculator returns the exact count instantly, including how many of those days are weekdays versus weekends.

Whether you're tracking a notice period, a payment term, a training plan, or just how long you've been going without something, the total is one field away. Change either date and the number updates immediately.

When to use this calculator vs business days

Count every day when you need the total span of calendar time: age, anniversaries, warranties, trial periods, travel planning. If the question is about work, shipping or contracts, use the business-days calculator instead. The two numbers can differ a lot. A 90-calendar-day stretch contains only about 64 weekdays, and confusing the two is one of the most common causes of missed deadlines. This page counts all calendar days and also shows the weekday/weekend split, so you can see both views and pick the right one for your situation.

Start date and end date: included or not?

Counting the first day or not changes the answer by one. Legal documents care about that one day a great deal. The calculator includes the end date by default (January 1 to January 2 counts as 2 days) and you can untick the option. Rule of thumb: notice periods and event countdowns usually include the end date, while age and elapsed time usually exclude the start day. Not sure which convention applies? Run the count both ways and use whichever one your contract, school or local law defines.

Why different calculators give different answers

Two calculators can disagree by a day for the same two dates, and usually both are right in their own way. The differences come from three places: whether the end date is included, whether the math runs on calendar days or exact 24-hour chunks (daylight saving time makes a day 23 or 25 hours long), and time zones. The same instant is a different date in different parts of the world. The tool counts calendar days with your browser's own date engine, so leap years and month lengths are always correct for your locale. No date you enter ever leaves your device.

Weeks, months and years are approximations

There is no exact conversion from days to weeks, months or years, because months are not equal and years have leap days. The calculator shows the exact day count and, alongside it, expresses the same span in weeks (divide by 7), months (about 30.44 days each) and years (about 365.25 days each). Use those secondary numbers to get a feel for scale, the 'about three months' kind of sense, not for legal precision. If something matters legally or financially, keep the exact day count and the two original dates, and quote all three together in your document or message.

How the calculation actually works

Inside a computer, every date is stored as a single number: the count of milliseconds since January 1, 1970. Counting the days between two dates is just subtracting the two numbers and dividing by 86,400,000. Since this is pure arithmetic, the result is computed instantly in your browser. The page works offline once loaded, there is no server round-trip, and your dates are never uploaded or stored anywhere. If you want to check, open the browser's developer console: the whole thing is a two-line script.

Quick reference for common spans

7 days is one week. 30 days is about one month, but a calendar month varies between 28 and 31 days. 90 days is about three months. 180 days is about half a year. 365 days is one year, or 366 in a leap year. 1,000 days is about two years and nine months. 10,000 days is about 27 years and four months. If you are tracking a milestone like 30, 90 or 365 days, this page and the quit-streak trackers elsewhere on this site use the same calendar math, so your numbers stay consistent no matter which tool you check them in.

Counting backwards: X days ago and X days from now

Reverse date math shows up just as often as forward. When did the warranty clock start? What date was 90 days ago? Which day does the trial end on? You can answer all of it here by entering the anchor date and reading the offset in either direction. Or switch to the date add/subtract tool on this site, which adds and subtracts days, weeks, months and years directly. One thing people get wrong with backwards counts: the same inclusive/exclusive question still applies. 90 days ago from a Monday can land on a different date depending on whether you count the Monday itself. When the answer feeds a deadline, write down both the date and the convention you used.

Frequently asked

Does it include both the start and end date?

By default the end date is included, so Jan 1 to Jan 2 counts as 2 days. Untick the checkbox to count the gap instead.

Does it handle leap years?

Yes. Calculations use your browser's native date engine, so leap days and month-length differences are always correct.

How many weeks are between two dates?

The calculator shows weeks as part of the result breakdown. Enter both dates and you get the total days, weeks, weekdays and weekends in one look.

Can this count only working days?

Not on this page. The count here includes every calendar day, weekends included. If you need business days, use the business days calculator on this site: it skips weekends and lets you add holidays for your country.

How do I find out how many days have passed since an event?

Enter the event date as the start and today as the end. If you plan to check the same event often, the days-since tracker on this site saves your start date in your browser and shows the running count, so you do not re-enter it every time.

How many days are between two dates?

To calculate days between dates, enter the start date and the end date. The result appears the moment either date changes, and leap years are counted correctly. The include-end-date checkbox switches between counting the gap and counting both end days.