📅
Date Difference Calculator
calculatorCount the exact days, weeks and calendar months between any two dates, leap years included.
Use the Tool
Generated Palette
Click any color to copy hex code
Generated Passwords
Formatted Output
Summary
Quick Tip Reference
| Tip % | Tip Amount | Total |
|---|---|---|
Amortization Schedule (first 12 months)
| Month | Payment | Principal | Interest | Balance |
|---|---|---|---|---|
All Conversions
About This Tool
The Date Difference Calculator works out how much time separates two calendar dates. Enter a start date and an end date and it returns the gap in whole days, along with the same span expressed in other units such as weeks and calendar months. Because it uses proper calendar arithmetic rather than a flat 30-day month, leap years and the differing lengths of February, April and August are all handled correctly. It suits anyone who needs a dependable number rather than a rough guess: project managers counting working days to a deadline, parents working out a child's age in days, contract administrators checking notice periods, travellers counting nights, and students tracking revision time. The same tool answers the reverse question just as well, telling you how long ago a past date was.
Counting time across an uneven calendar
Calendar dates resist direct subtraction: months run to 28, 29, 30 or 31 days, and every fourth year gains an extra day. The reliable method, and the one used here, is to convert each date into a single running day number counted from a fixed reference point, then subtract one number from the other. That difference is the exact number of whole days.
Leap years follow the Gregorian rule: a year has 366 days if it divides by 4, except for century years, which must also divide by 400. So 2024 and 2000 are leap years while 1900 and 2100 are not. Converting to day numbers applies that rule automatically, so a span crossing 29 February is counted correctly with no manual adjustment.
Once the day count is known, the other units follow. Weeks are that count divided by seven, with the remainder shown as leftover days. A calendar breakdown of years, months and days is built differently: it steps forward from the start date one whole month at a time for as long as it can, then counts the remaining days, which is why that figure will not match the day count divided by an average month length.
Leap years follow the Gregorian rule: a year has 366 days if it divides by 4, except for century years, which must also divide by 400. So 2024 and 2000 are leap years while 1900 and 2100 are not. Converting to day numbers applies that rule automatically, so a span crossing 29 February is counted correctly with no manual adjustment.
Once the day count is known, the other units follow. Weeks are that count divided by seven, with the remainder shown as leftover days. A calendar breakdown of years, months and days is built differently: it steps forward from the start date one whole month at a time for as long as it can, then counts the remaining days, which is why that figure will not match the day count divided by an average month length.
Worked example: 14 February 2024 to 1 November 2024
Take a start date of 14 February 2024 and an end date of 1 November 2024. 2024 divides by 4 and is not a century year, so February has 29 days.
Counting by day number within the year, 14 February is day 45, because January contributes 31 days and you then add 14. For 1 November, add up January to October: 31 plus 29 plus 31 plus 30 plus 31 plus 30 plus 31 plus 31 plus 30 plus 31 equals 305 days. Adding the first of November gives day 306. Subtracting 45 from 306 leaves 261 days.
The same figure can be checked by counting forward instead: 15 days remain in February after the 14th, then March through October add 31, 30, 31, 30, 31, 31, 30 and 31, which totals 245, and finally 1 November adds one more. 15 plus 245 plus 1 is 261.
In weeks, 261 divided by 7 is 37 weeks and 2 days. As a calendar breakdown, 14 February plus eight whole months lands on 14 October, and 14 October to 1 November is a further 18 days, so the span reads as 8 months and 18 days.
Counting by day number within the year, 14 February is day 45, because January contributes 31 days and you then add 14. For 1 November, add up January to October: 31 plus 29 plus 31 plus 30 plus 31 plus 30 plus 31 plus 31 plus 30 plus 31 equals 305 days. Adding the first of November gives day 306. Subtracting 45 from 306 leaves 261 days.
The same figure can be checked by counting forward instead: 15 days remain in February after the 14th, then March through October add 31, 30, 31, 30, 31, 31, 30 and 31, which totals 245, and finally 1 November adds one more. 15 plus 245 plus 1 is 261.
In weeks, 261 divided by 7 is 37 weeks and 2 days. As a calendar breakdown, 14 February plus eight whole months lands on 14 October, and 14 October to 1 November is a further 18 days, so the span reads as 8 months and 18 days.
Reading the answer without tripping over inclusive counting
The figure returned is a difference, not a tally of dates. From 1 March to 3 March the difference is 2 days, but there are 3 dates in that range. Deadlines and hire periods often use the second, inclusive way of counting, so check which convention your contract, booking or invoice uses before acting on the number. Where inclusive counting applies, add one day to the result.
The calculation works on whole dates, so times of day are not part of it. Two events 23 hours apart can straddle midnight and show as a one-day gap, while two events 25 hours apart within the same pair of days show the same one day. For anything sensitive to hours, such as flight connections or service-level windows, work in hours separately.
The years, months and days breakdown is the figure people misread most often. Because months are unequal, 8 months and 18 days is not the same as dividing 261 by an average 30.44-day month. Use the plain day count whenever you need a number you can add, compare or divide with confidence, and treat the calendar breakdown as a description rather than an input to further arithmetic.
The calculation works on whole dates, so times of day are not part of it. Two events 23 hours apart can straddle midnight and show as a one-day gap, while two events 25 hours apart within the same pair of days show the same one day. For anything sensitive to hours, such as flight connections or service-level windows, work in hours separately.
The years, months and days breakdown is the figure people misread most often. Because months are unequal, 8 months and 18 days is not the same as dividing 261 by an average 30.44-day month. Use the plain day count whenever you need a number you can add, compare or divide with confidence, and treat the calendar breakdown as a description rather than an input to further arithmetic.
Frequently Asked Questions
It returns the difference between the two dates, so the start date is not counted as a full day. From 1 March to 3 March the answer is 2 days. If your situation counts every date in the range, such as a hire period billed per day, add one to the result to get the inclusive figure of 3.
Yes. Any span that crosses 29 February picks up that extra day automatically, because the calculation uses the Gregorian leap rule: divisible by 4, except century years, which must also divide by 400. That means 2024 and 2000 have 366 days while 1900 and 2100 have 365.
Months are not all the same length, so a calendar breakdown is built by stepping forward whole months from the start date and then counting the leftover days. Dividing the total by 30 or by the 30.44-day average gives a different number. Use the plain day count for any further arithmetic.
Yes. Put the earlier date first and today's date second and the result tells you how long ago something happened. The arithmetic is identical in both directions, so it works equally well for anniversaries, ages in days, and checking how long a document has been in force.
The result is a count of calendar days, which includes weekends and public holidays. To reach a working-day figure, take the total days, work out the number of whole weeks, subtract two days for each, then deduct any bank holidays that fall inside the range for your country.
Statistics
Views
1,422
Uses
329
Type
calculator