Instant answers for any percentage problem: find the percent, the part, or the whole in one click.
To find the number of days between two dates, convert both to a day count from a fixed reference point and subtract. In a spreadsheet, subtracting one date cell from another gives the answer directly, no formula required.
For dates within the same year, count the days left in the start month, add the full months between, and add the days in the final month. For anything longer, a calculator or spreadsheet is the right tool, because you also have to account for months with 28, 29, 30, or 31 days.
With two date cells (e.g. A1 and B1), the formula is simply =B1-A1. Format the result cell as a number, not a date, and it returns the exact number of days. You can also use =DAYS(B1,A1) for clarity.
To convert days to complete months, use =DATEDIF(A1,B1,"M") in Excel. This returns full calendar months, not an approximation. For a partial count including remaining days: =DATEDIF(A1,B1,"MD") gives days left over after whole months.
Common uses: days until an event, contract deadline verification, figuring out how long ago something happened, and interest calculations on daily-rate loans. Also, arguing about how many days until a birthday. (People are competitive about this.) The Date Calculator handles all these cases and shows the result in days, weeks, and months. See also how to calculate age for a related use case.
A leap year adds February 29, occurring roughly every four years. If your date span crosses one or more leap year Februaries, the count is one day higher per leap year than a simple 365-per-year estimate. This matters most for spans of several years.
Instant answers for any percentage problem: find the percent, the part, or the whole in one click.
Subtract the earlier date from the later date. In Excel, put each date in its own cell and enter =B1-A1 in a third cell, formatted as a number. Online, the Date Calculator above does it in one click.
Select two cells with dates, then in a third cell type =B1-A1 and format the result as a number. Excel returns the exact day count. You can also use =DAYS(end,start) for the same result.
Use =DATEDIF(start,end,"M") in Excel for complete months. For a rough approximation, divide the total days by 30.44 (average days per month).
The Date Calculator on this site returns the exact count in days, weeks and months for any two dates, with leap years handled automatically.

Chris Terry is the editor of Encore Editorial and oversees content, sourcing, and the accuracy of everything published here. His background spans business operations, market research, and making complicated things readable.