How to Calculate Date Difference
Find the number of days between two dates.
The Formula
Date2 - Date1 = DaysThe date difference formula uses the mathematical relationship: Date2 - Date1 = Days. Each variable in the formula represents a measurable quantity that affects the final result.
What Each Variable Means
Every value in the date difference formula, what it measures, and the value used in the worked example on this page:
| Variable | Type | Example value |
|---|---|---|
| Days Between Dates | Input (you provide) | 365 |
| Weeks | Result (calculated) | — |
| Approximate Months | Result (calculated) | — |
| Approximate Years | Result (calculated) | — |
Step-by-Step Method
- 1Write down the values you know: Days Between Dates.
- 2Substitute your known values into the formula: Date2 - Date1 = Days.
- 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
- 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
- 5Verify your answer with the interactive Date Difference Calculator — it solves the same formula instantly.
Worked Example
Take a concrete case: days between dates = 200, with the other inputs at the typical values from the variables table above. Substituting into the formula gives weeks = 28.57, approximate months = 6.57, approximate years = 0.5476. These numbers are solved by the same engine that powers the Date Difference calculator, so you can reproduce them exactly by entering the same inputs there.
| Days Between Dates | Weeks | Approximate Months | Approximate Years |
|---|---|---|---|
| 90 | 12.86 | 2.96 | 0.2464 |
| 200 | 28.57 | 6.57 | 0.5476 |
| 300 | 42.86 | 9.86 | 0.8214 |
| 400 | 57.14 | 13.14 | 1.0951 |
| 500 | 71.43 | 16.43 | 1.3689 |
| 700 | 100.00 | 23.00 | 1.9165 |
| 900 | 128.57 | 29.57 | 2.4641 |
| 1,000 | 142.86 | 32.85 | 2.7379 |
How each result changes as days between dates changes, holding the other inputs constant.
Practice Problems
1. 1 year (365 days): With Days Between Dates 365, what are the results?
Answer: The calculator returns Weeks 52.14, Approximate Months 11.99, Approximate Years 0.9993 for Days Between Dates 365.
2. Days Between Dates 125 — work it out, then check the answer.
Answer: With Days Between Dates 125, the results are Weeks 17.86, Approximate Months 4.11, Approximate Years 0.3422.
Frequently Asked Questions
What is the formula for date difference?
The formula is: Date2 - Date1 = Days. Find the number of days between two dates.
What values do I need to calculate date difference?
You need days between dates. The calculator produces weeks, approximate months, approximate years from those inputs.
What is the date difference when days between dates is 200?
With days between dates = 200, the result is weeks = 28.57, approximate months = 6.57, approximate years = 0.5476. This is worked through in full in the example on this page.
Related Topics
Use the Interactive Calculator
Skip the manual math — get instant results with our free Date Difference calculator.
