Skip to content

Date Difference Calculator

Enter two dates to see how far apart they are in days, weeks, hours, minutes, months and years.

Runs in your browserFree, no sign-upLast reviewed

Settings

Results update automatically as you type.

Fill in the settings to see your result here.

Your result appears here instantly — nothing is uploaded.

Quick answers

How do I calculate the number of days between two dates?
Subtract the earlier date from the later one, counting each calendar day once and leaving out the end date. From January 1, 2026 to December 25, 2026 is 358 days. Enter any two dates above to get the count without working through month lengths.
Does the difference between two dates include the end date?
No. The total is the number of days from the start date up to the end date, so Monday to Friday of the same week is 4 days. If you need both the first and last day counted, as for leave or hire periods, add 1.
How many days are there between January 1 and December 31?
364 days in a common year and 365 in a leap year, because the end date is not counted. Counting both days gives the familiar 365 or 366. From January 1 to the next January 1 is 365 days, or 366 across a leap year.
How many weeks are between two dates?
Divide the total days by 7. The whole number is the weeks and the remainder is the extra days. A gap of 100 days is 14 weeks and 2 days, and 365 days is 52 weeks and 1 day.
How do I find the year difference between two dates?
Count the full years completed between them. From January 1, 2000 to October 8, 2026 is 26 years, with 9 months and 7 days left over. The Years figure only rises once the anniversary of the start date has been reached.
Are leap years counted?
Yes. The count uses real calendar dates, so February 29 adds a day whenever it lies in the range. February 28 to March 1 is 2 days in 2024, a leap year, and 1 day in 2025.

How Date Difference Calculator works

This tool measures the time between two dates and reports it six ways: total days, whole weeks plus leftover days, hours, minutes, completed years and completed months. A Breakdown line underneath gives the same gap as years, months and days. The count runs from the start date up to, but not including, the end date, so January 1 to January 2 is 1 day. Every February 29 inside the range is counted. For example, from October 8, 2026 to December 25, 2026 is 78 days, which is 11 weeks and 1 day, or 2 months and 17 days.

Worked examples: days, weeks and months between two dates

Counting down to a date this year

Start date October 8, 2026; End date December 25, 2026

78 days. 11 weeks plus 1 day, 1,872 hours, 112,320 minutes. Breakdown: 2 months, 17 days.

A school year

Start date September 1, 2026; End date June 15, 2027

287 days. Exactly 41 weeks, 6,888 hours. Breakdown: 9 months, 14 days.

A long span across several leap years

Start date January 1, 2000; End date October 8, 2026

9,777 days. 1,396 weeks plus 5 days, 234,648 hours, 14,078,880 minutes, 321 months. Breakdown: 26 years, 9 months, 7 days.

Ten years of service

Start date June 18, 2016; End date October 8, 2026

3,764 days. 537 weeks plus 5 days, 123 months. Breakdown: 10 years, 3 months, 20 days.

Dates entered in reverse

Start date December 25, 2026; End date October 8, 2026

78 days, the same as the first example. The Breakdown line lists the earlier date first.

Days from January 1 to the first of each month

A quick reference for day counts within a year. The leap year column applies to years such as 2028 and 2032.

From January 1 toCommon yearLeap year
February 13131
March 15960
April 19091
May 1120121
June 1151152
July 1181182
August 1212213
September 1243244
October 1273274
November 1304305
December 1334335
January 1 of the next year365366

To get the days between any two month starts in the same year, subtract one row from the other: April 1 to October 1 is 273 - 90 = 183 days.

Day counts converted to weeks, hours and minutes

Total daysWeeksHoursMinutes
10 plus 1 day241,440
304 plus 2 days72043,200
9012 plus 6 days2,160129,600
10014 plus 2 days2,400144,000
36552 plus 1 day8,760525,600
36652 plus 2 days8,784527,040
1,000142 plus 6 days24,0001,440,000
10,0001,428 plus 4 days240,00014,400,000

Hours and minutes are the day count multiplied by 24 and by 1,440. Dates have no time of day here, and clock changes for daylight saving are not applied.

How the difference is calculated

Total days = end date - start date. Weeks = total days / 7, rounded down, with the remainder shown as extra days. Hours = total days x 24. Minutes = total days x 1,440.

The years, months and days breakdown is worked out separately, the way you would count on a calendar: subtract the years, then the months, then the days. If the end day number is smaller than the start day number, one month is borrowed and the length of the month before the end date is added to the days. For October 8 to December 25: months 12 - 10 = 2, days 25 - 8 = 17, giving 2 months, 17 days. The Months figure in the panel is the total of completed months (years x 12 plus months), and Years is the count of completed years. In a spreadsheet, =B1-A1 gives the same total days when both cells hold dates.

Counting the end date or not

The total here is the gap between two dates. That matches how you would describe elapsed time and how hotel nights work: check in on Friday, check out on Sunday, and you have stayed 2 nights.

Many everyday counts include both the first and the last day. A leave request from Monday to Friday is 5 days, a car hired from the 1st to the 7th is usually billed as 7 days, and an event running from the 10th to the 12th lasts 3 days. For those, add 1 to Total days.

Deadlines sit in between. A rule worded as within 30 days of a date normally leaves out the day of the event and counts the last day, which is the same as adding the number to the start date. When a deadline matters, read how the contract or regulation defines the count before relying on any calculator.

If only working days matter, use the Business Days Calculator on this site, which leaves out Saturdays and Sundays.

Step by step

  1. 1

    Enter the Start date. It opens on today's date.

  2. 2

    Enter the End date. If it is earlier than the start date, the two are swapped automatically.

  3. 3

    Read Total days, Weeks, Hours, Minutes, Years and Months in the Difference panel.

  4. 4

    Copy the Breakdown line for the gap written as years, months and days, with both dates and their weekdays spelled out.

Answers to common questions

Why is the months and days breakdown not just the total divided by 30?
Months run from 28 to 31 days, so there is no fixed number of days in a month. The breakdown steps through real calendar months instead. That is why 78 days from October 8 is 2 months, 17 days, while 78 days from another start date can break down differently.
What do the Years and Months figures in the panel mean?
Years is the number of full years completed between the dates. Months is the total number of full months completed, including those inside the years. For January 1, 2000 to October 8, 2026 the panel shows 26 years and 321 months, and the Breakdown shows 26 years, 9 months, 7 days.
Can I use it to count how many days until a future date?
Yes. Leave Start date on today and set End date to the event. Total days is the number of days still to go, not counting today. The result is fixed for the dates entered, so come back and recalculate on a later day for an updated countdown.
Can I calculate the difference between two dates in the past?
Yes. Both dates can be any valid calendar dates, past or future, in either order. The calculation follows today's Gregorian calendar rules for every year, including the century rule that made 1900 a common year and 2000 a leap year.
Does it count hours between two times of day?
No. It takes whole dates only. Hours and Minutes are the total days expressed in smaller units, so a 1-day difference always shows 24 hours and 1,440 minutes.
How do I find a date a set number of days after another date?
That is the reverse calculation. Use the Add or Subtract Days tool on this site: enter the start date and the number of days, weeks, months or years, and it returns the resulting date.
How do I work out someone's age from their date of birth?
Entering the date of birth as Start date and today as End date gives the right years, months and days. The Age Calculator on this site adds the total days lived and the days until the next birthday.

Looking for something else? Browse all date & time tools or see every tool.