Date difference calculator
Find exactly how far apart two dates are — for counting down to a deadline, working out a notice period, tracking a project span, or settling how long ago something happened. Enter a start date and an end date and the calculator shows the gap as a total number of days, weeks and hours, plus an exact years-months-days breakdown.
How it works
Both dates are normalised to midnight so partial days don’t distort the count. The total days is the millisecond gap divided by the milliseconds in a day, rounded to the nearest whole day; weeks are that figure divided by 7 (rounded down) and hours are days × 24. The calendar breakdown subtracts year, month and day separately, borrowing the length of the previous month when the day count would go negative and carrying down a month when needed. The order of the two dates never matters — the tool measures the gap from the earlier to the later date and simply tells you whether the end date falls before or after the start date.
Example
From 1 January 2026 to 30 May 2026 is 149 days, which is 21 complete weeks (plus 2 days) and 3,576 hours, or a calendar gap of 0 years, 4 months, 29 days.
| Field | Value for 1 Jan → 30 May 2026 |
|---|---|
| Calendar difference | 0 yr 4 mo 29 d |
| Total days | 149 |
| Total weeks | 21 |
| Total hours | 3,576 |
Everything runs entirely in your browser — nothing is uploaded.