Number of Days Calculator


Website
Rijk is passionate about making a positive difference in the lives of Omni’s users. He’s an avid programmer, musician, and board game player, and both his calculators and side-projects reflect his hobbies. He believes that any problem can be solved with the right set of equations and a few lines of code.See full profile

Website
Adena Benn is a Guyanese teacher with a degree in computer science who is always reading and learning. She loves problem-solving, everything tech, and working with teenagers. She has a passion for education and is especially interested in how children learn and the teaching methods that best suit their learning styles. She grew up on a farm in Pomeroon, Guyana, where she worked alongside her parents and siblings. As such, she is just as comfortable growing plants as teaching in the classroom. In her early life, she also gained expertise as a seamstress, which she learned from her mother. By grade 9, she had already acquired her dressmaker's certificate. Today she uses her skills to design many items for her family. In her free time, Adena loves to read, take long walks, write children’s stories and poetry, travel, or spend time with her family.See full profile
With thenumber of days calculator, you'll learnhow many days there are between two dates in time! Stick around, and you'll quickly learnhow to calculate the number of days between two dates of your choosing.
How to use the number of days calculator
Thenumber of days calculator is easy to use and yet powerful in its features:
- If you havetwo dates, you can enter them into the
FromandTofields. The number of days between these two dates will be calculated and reported in theTime betweenfield. - If you want to determine the date of the day that's
xdays after a starting date, then enter that date inFromand the number of days inTime between— you'll find the end date in theTofield. - The same goes for going backward in time
xdays from an end date — enter the number of days inTime betweenand the end date inTo. - If you want to see how your number of days translates toweeks, months, and years, you canchange the unit of
Time betweento have it calculated for you!
If you want to get more precise, you can use these three additional features of the calculator:
- Include end date: Include or exclude the end date;
- Business days: Count only business days (Monday to Friday and not Saturday or Sunday); and
- Custom time: Count only certain days of the week.
How do I calculate the number of days between two dates?
It's a simple question with difficult implications — how many days are there between two dates? It gets more difficult the further these two dates are from each other in time. Let's look at some examples and see what we mean!
🔎 In all the example calculations below, weexclude the end date. If we wish to include the end date, we'd need to add1 day to each result.
Same month and same year
If both dates arein the same month of the same year, you can subtract the dates' calendar day numbers from each other. For example, April 4, 2022 and April 17, 2022 are17 − 4 = 13 days apart.
Same year but different months
If both dates arein the same year but not the same month, you can work out the number of days from January 1 (of that year) to both your dates and subtract these two differences. To do that, you need the number of days in each month of that year (remember to check for leap years).
For example, if we want to figure out how many days are between May 17, 2022, and July 8, 2022, we'd work them both back to January 1 of 2022:
- There are
31 + 28 + 31 + 30 + 17 = 137days from January 1 to May 17 in 2022. How'd we get there? Well, January and March each have 31 days, April has 30, and February has 28. We add them together and add the17of May 17 to get the137days. - The same for July 8: There are
31 + 28 + 31 + 30 + 31 + 30 + 8 = 189days from January 1 to July 8 in 2022. - The difference between these two time differences (
189 − 137 = 52days) is the number of days between May 17 and July 8, 2022.
Different years
If there are one or more years between two dates, we should work out two things:
- For the start date, we need the number of days between itself and December 31 of that year. Here, we must include the end date (so add
1day). - For the end date, we need the number of days between January 1 of that year and itself (excluding the end date).
- We also need to know how many complete calendar years there are between the two dates.
Example: let's work out the number of days between September 17, 1997, and December 1, 1999.
- September 17, 1997, to December 31, 1997, is
105days, and106days with the end date included. - January 1, 1999, to December 1, 1999, is
334days. - There is one complete calendar year (1998) between our dates, contributing another
365days to the day count.
So, the grand total of number of days between September 17, 1997 and December 1, 1999 is106 + 334 + 365 = 805 days.
And that's it — now you know how to calculate the number of days between any two dates!
Related calculators
If thenumber of days calculator didn't help you count the days, then perhaps you might be interested in our otherday counting calculators:
FAQs
How many months have exactly 28 days?
Only one, and that's February. That's only if the year in question is not a leap year. If the year is a leap year, then February would have 29 days.
How many work days are in a year?
On average, there are 261 work days per year, but it varies slightly every year. 2021 had 261 business days. 2022 has 260 working days, and so will 2023. 2024 is a leap year with an extra day, so it'll have 262 working days. Remember that these numbers do not account for public holidays, as those vary by country.
How many days are in a month?
It depends on which month. January, March, May, July, August, October, and December each have 31 days. April, June, September, and November each have 30 days. February typically has 28 days but has 29 days in a leap year. On average, there are 30.44 days in a month (as365.25 days / 12 months = 30.4375 days per month).
Business days
Business days
Custom time
Custom time
Did we solve your problem today?
Check out 33 similartime and date calculators ⏳
8-hour shift
Add time
Age