myagecalculators.in

Date Difference Calculator

Enter two dates to count the days between them. You also see the gap in years, months and days, in weeks, and as a count of dates if the first and last day both count. Or add or subtract days, weeks, months or years from a date.

Count the days between two dates

I want to
Type the date in your usual order, or pick from the calendar.
Type as DD/MM/YYYY or pick from the calendar.
Add or subtract
A whole number, up to 36,600.
Of

Runs in your browser. The date of birth is not sent to us.

How it works

Enter a date of birth to see the answer

More options: working days and holidays, add or subtract days, times of day and reports

Turn on JavaScript to use the Date Difference calculator. If it did not load, refresh the page.

Loading calculator… If this message remains, refresh the page.

01 · Days between

How many days are between two dates?

From 1 October to 6 October 2026, there are 5 elapsed days. If you count the 1st and the 6th as well as every date in between, you get 6 dates. Both answers are right; which one you need depends on what you’re counting.

You can also show the gap in weeks, or in years, months and days. Before you use the result, decide which units you need and whether the start and end dates should count.

02 · Both dates

Should you include the start and end dates?

Elapsed days tell you how far apart two dates are. An inclusive count tells you how many calendar dates the range covers. With the dates in order, counting both ends adds one to the elapsed days.

Count from 1 to 6 October 2026What you countResult
Elapsed differenceDistance from the 1st to the 6th5 days
Include both dates1, 2, 3, 4, 5 and 6 October6 dates
Include only one end1 to 5, or 2 to 6 October5 dates
Exclude both dates2, 3, 4 and 5 October4 dates

For example, a stay from 1 October to 6 October is five nights. Time off covering every date from 1 to 6 October uses six calendar dates, before any workplace rules apply.

If the start and end dates are the same, the elapsed difference is zero days, but an inclusive count gives one date. That’s a quick way to check what a form means when it asks for the “number of days.”

03 · Step by step

Calculating the date difference step by step

For a calendar breakdown, count full years, then full months, then the days left over. From 15 June 2024 to 6 October 2026, the result is 2 years, 3 months and 21 days, or 843 elapsed days.

Step by step, that’s 15 June 2024 to 15 June 2026, then on to 15 September 2026, and finally to 6 October. Each step follows the real calendar.

Dividing 843 by 365 or by 30 won’t give the same breakdown. A year has 365 or 366 days, and a month has anywhere from 28 to 31. Calendar months and years aren’t fixed blocks of days.

04 · Spreadsheet formula

Date difference formulas for Excel and Google Sheets

You can get the same answers in Excel, Google Sheets or LibreOffice Calc. Put the start date in A1 and the end date in B1. NETWORKDAYS counts Monday to Friday dates, including both the start and end date. To leave out holidays, add a range of holiday dates as a third argument. Format C1, D1, E1 and G1 as numbers, and H1 and I1 as dates.

CellGivesFormula
C1Days between=B1-A1
D1Dates counting both ends=B1-A1+1
E1Whole months between=(YEAR(B1)-YEAR(A1))*12+MONTH(B1)-MONTH(A1)-(EDATE(A1,(YEAR(B1)-YEAR(A1))*12+MONTH(B1)-MONTH(A1))>B1)
F1Years, months and days=INT(E1/12)&" years, "&MOD(E1,12)&" months, "&(B1-EDATE(A1,E1))&" days"
G1Monday to Friday dates, both ends counted=NETWORKDAYS(A1,B1)
H1A1 plus 30 days=A1+30
I1A1 plus 3 months=EDATE(A1,3)

In some countries, spreadsheets use a semicolon instead of a comma between the parts of a formula.

Sources: Microsoft Support: EDATE function; Ablebits: EDATE at the end of a month; Microsoft Support: NETWORKDAYS function.

05 · In weeks

Converting days into weeks

Divide the number of days by seven. The whole number is the complete weeks, and the remainder is the extra days.

So 100 days is 14 weeks and 2 days, and the 843 days above are 120 weeks and 3 days. Month lengths don’t matter here, because a week is always seven days.

For a deadline exactly 100 days after a date, add 100 calendar days. If the instruction says “within 100 days,” or tells you not to count the starting date, follow that wording.

06 · Working days

How working days are counted

To count working days, you need to know which days the organization works and which holidays it takes. A Monday to Friday office and a Monday to Saturday office get different totals for the same period.

For Monday 1 June to Sunday 7 June 2026, counting both dates:

Working weekCount before holidays
Monday to Friday5 working dates
Monday to Saturday6 working dates
Every calendar day7 dates

A holiday only lowers the total if it falls on a day that would otherwise count. A holiday on a Sunday you’re already leaving out doesn’t remove another day. If the same holiday appears twice in a list, count it once.

Offices, schools and banks don’t all work the same days, even within one country. Use the weekend pattern and holiday list that apply to you. The calculator can count those dates, but your employer’s rules decide how they apply to attendance or leave.

07 · Tap two dates

Tap two dates: weekends and public holidays

Tap a start date and an end date to count the days between them, with weekends and public holidays shaded. Choose the holiday calendar for your country; it starts as the one for your device’s time zone. Holidays are listed for 2026 and 2027.

1 December 2026

Tap a start date.

WeekendPublic holidayYour dates

Next public holidays

  • US federal holidays (Monday to Friday): Christmas Day, 25 December 2026; New Year’s Day, 1 January 2027; Birthday of Martin Luther King, Jr., 18 January 2027; Washington’s Birthday, 15 February 2027
  • England and Wales bank holidays: Christmas Day, 25 December 2026; Boxing Day (substitute), 28 December 2026; New Year’s Day, 1 January 2027; Good Friday, 26 March 2027
  • Scotland bank holidays: Christmas Day, 25 December 2026; Boxing Day (substitute), 28 December 2026; New Year’s Day, 1 January 2027; 2nd January (substitute), 4 January 2027
  • Northern Ireland bank holidays: Christmas Day, 25 December 2026; Boxing Day (substitute), 28 December 2026; New Year’s Day, 1 January 2027; St Patrick’s Day, 17 March 2027
  • India: Central Government administrative offices, Delhi/New Delhi: Christmas Day, 25 December 2026; Republic Day, 26 January 2027; Id-ul-Fitr, 10 March 2027; Holi, 23 March 2027

Sources, by calendar:

08 · Months

Why a calendar month is not always 30 days

One calendar month after 15 January is 15 February, which is 31 days later. One month after 15 February 2025 is 15 March, only 28 days later.

Month ends need extra care. When the target month doesn’t have the starting day, this calculator uses its last day. Adding one month to 31 January 2025 gives 28 February. Going back one month from 28 February then gives 28 January, not the 31st, because the move to February lost the original day.

For a contract or schedule written in months, count in months. If it gives a fixed number of days, count that many days instead.

09 · Questions

Questions people ask

Are weekends included in the day count?

Yes. A normal count of calendar days includes weekends. A working-day count leaves out the days your calendar marks as non-working.

What if the end date is before the start date?

Then you’re counting backward. Swapping the dates doesn’t change the size of the gap, only its direction. Check whether you need the direction or just the number of days between them.

Do leap years affect the result?

Yes, if the period includes 29 February. From 28 February to 1 March is two days in 2024, but one day in 2025.

Can I calculate exact hours from dates alone?

Multiplying the days by 24 turns the date difference into hours. For the exact time between two moments, you need both times and time zones, since a day with a clock change may not last 24 hours.

Can I use this to calculate age?

Age uses the same date arithmetic, but the age calculator is easier when you start from a date of birth. It gives completed age, birthday details and age on any date.

10 · Related

Related calculators

More age and date calculators