Date Difference Calculator
Pick a start and end date to find the total number of days between them, the breakdown in years, months and days, full weeks and full months.
The end date must be on or after the start date.
How date differences are calculated
This calculator counts the number of calendar days between your start and end dates, including the effect of different month lengths and leap years.
The years/months/days breakdown works like a calendar count: it finds the largest whole number of years, then months, then days that fit between the two dates — the same way you'd describe someone's exact age or the exact length of a project.
Frequently asked questions
Does the day count include both the start and end date?
By default the result is the difference, so January 1 to January 2 is 1 day. Choose to count the end date as a day when both dates belong to the period (for example a stay or a leave from 1 to 31 January = 31 days); the weekdays, weekend days and hours follow the same choice. Public holidays are not removed.
How does the calculator handle leap years?
It uses real calendar dates, so February 29 in a leap year is counted correctly and doesn't need any special handling from you.
Can I calculate a date in the past?
Yes, as long as the end date is on or after the start date, so you can use any two dates — past, present, or future — to measure the gap between them.
How are full weeks and months counted?
Full weeks are the total days ÷ 7 rounded down, with the remaining days shown separately. Months are calendar months from the start date; when the start day does not exist in a month, its last day counts (31 January → 28 February is one month). The end date itself is not counted; add 1 day to include it.
How we verified this calculator
The calculator is checked against 6 reference cases computed independently of its code. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
End date = Not counted
Start date = 2024-01-01
End date = 2024-01-31
|
Full weeks: 4
Days beyond full weeks: 2
Full months in total: 0
Weekdays (Mon–Fri): 22
|
| 2 |
End date = Counted as a day
Start date = 2024-01-01
End date = 2024-01-31
|
Full weeks: 4
Days beyond full weeks: 3
Full months in total: 1
Weekdays (Mon–Fri): 23
|
| 3 |
End date = Counted as a day
Start date = 2023-12-30
End date = 2024-03-05
|
Full weeks: 9
Days beyond full weeks: 4
Full months in total: 2
Weekdays (Mon–Fri): 47
|
| 4 |
End date = Not counted
Start date = 2024-01-31
End date = 2025-03-01
|
Full weeks: 56
Days beyond full weeks: 3
Full months in total: 13
Weekdays (Mon–Fri): 283
|
| 5 |
End date = Not counted
Start date = 2024-11-23
End date = 2024-11-24
|
Full weeks: 0
Days beyond full weeks: 1
Full months in total: 0
Weekdays (Mon–Fri): 0
|
| 6 |
End date = Counted as a day
Start date = 2024-11-23
End date = 2024-11-23
|
Full weeks: 0
Days beyond full weeks: 1
Full months in total: 0
Weekdays (Mon–Fri): 0
|