Everyday Life · 57 calculators
Days Between Dates Calculator
Counting the days between two dates, or adding a number of days to a date, is a calendar arithmetic problem. Both operations reduce to converting each date to a day number, doing simple addition, and converting the result back to a calendar date.
Last updated
Days between
262
- Whole weeks between
- 37
- New date: day
- 31
- New date: month
- 1
- New date: year
- 2,026
- New date: weekday (0 = Sunday)
- 6
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
The formula this calculator uses
Days between = day number of later date - day number of earlier date
- From date
- The starting date
- To date
- The ending date
- Offset
- Days to add to or subtract from the from date
How to check the result by hand
- 1
Convert the from date
Apply the Julian day formula to the day, month and year of the starting date to get its day number.
- 2
Convert the to date
Apply the same formula to the ending date. The two day numbers are now comparable.
- 3
Subtract for the difference
The to day number minus the from day number is the exact number of days between the dates.
- 4
Add the offset
Add the offset in days to the from day number, then convert the result back to a calendar date.
- 5
Read the weekday
Take the day number modulo seven and offset it so that zero is Sunday. That gives the day of the week for the new date.
Common Questions
How does the Days Between Dates Calculator work?
From 1 January 2026 to 20 September 2026 is 262 days, or 37 whole weeks. Adding 30 days to 1 January 2026 lands on 31 January 2026, a Saturday.
What do I need to enter in the Days Between Dates Calculator?
It takes 7 inputs: From day, From month, From year, To day, To month, To year, Days to add. Fields that expect a unit say so next to the label.
Where does Days between come from?
It comes from JDN = d + floor((153m + 2) / 5) + 365y + floor(y/4) - floor(y/100) + floor(y/400) - 32045 — converts a calendar date into a continuous day count, where a equals floor((14 minus month) divided by 12), y equals year plus 4800 minus a, and m equals month plus 12a minus 3.
What is the most common mistake with the Days Between Dates Calculator?
Assuming every month has thirty days. Months run from twenty-eight to thirty-one days. A thirty-day approximation drifts by several days over a year and is wrong for anything contractual.
For worked examples, common mistakes and the limits of this formula, read the full How To Calculate Days Between Dates page.
