Home · Date & Time · Date Differences · Date Calculator
Date Calculator
Work out the distance between any two dates in days, weeks and hours, plus a years-months-days calendar breakdown.
What this calculator does
Work out the distance between any two dates in days, weeks and hours, plus a years-months-days calendar breakdown. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
The two dates are converted to day counts on the proleptic Gregorian calendar and subtracted; an earlier end date is swapped with the start so the result stays positive.
Dates use the proleptic Gregorian calendar: a year is a leap year when divisible by 4, except century years not divisible by 400.
Worked example
With the example inputs this page opens with, the result is 365 days — days between the dates.
Quick reference
| Figure | Value |
|---|---|
| Days between the dates | 365 days |
| Weeks | 52 weeks, 1 day |
| Calendar breakdown | 1 years, 0 months, 0 days |
| Hours | 8,760 |
| Minutes | 525,600 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How are leap years handled?
A year is a leap year when divisible by 4, except century years not divisible by 400 — so the span here includes no Feb 29 and totals 365 days.
Can I measure a span backwards?
Yes. Enter the later date first and the calculator swaps the pair, reporting the same positive number of days.
How does the Date Calculator work?
Work out the distance between any two dates in days, weeks and hours, plus a years-months-days calendar breakdown. Start date · End date → Days between. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Date Calculator need?
Start date · End date → Days between. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.