About the Days Between Dates Calculator
Counting days by hand across months of different lengths is where mistakes creep in. This days between dates calculator gives the exact number of days between two dates, with the option to include the end date, which matters for leave applications and bookings. From 1 January to 26 October 2026 is 298 days. The same span is shown in weeks, in months and years, and as weekdays and weekend days.
The day count is the end date minus the start date, so from 1 to 2 January is one day. Including the end date adds one. The months-and-days figure steps forward one calendar month at a time from the start date, so 31 January plus one month is the last day of February, then counts the remaining days. Weekdays are Monday to Friday, counted from the start date; for holidays and other weekend patterns use the business days calculator.
Example: from 1 January 2026 to 25 December 2026 is 358 days, which is 51 weeks and 1 day, or 11 months and 24 days. Of those days, 256 are weekdays and 102 fall on weekends. Counting both 1 January and 25 December makes it 359 days.
All dates are handled as calendar days, so daylight saving changes never add or lose an hour. To add or subtract days from a date use the date calculator, for working days only the business days calculator, and for counting down to an event the days until calculator.
How to use the Days Between Dates Calculator
- Pick the start dateThe first date of the period.
- Pick the end dateIf it is earlier than the start date, the dates are swapped.
- Choose whether to include the end dateTick it when both the first and last day count.
- Read the resultsSee days, weeks, months, weekdays and hours.
Days Between Dates Calculator features
- Exact day count across leap years
- Option to include the end date
- Weeks and days
- Years, months and days
- Weekdays and weekend days
- Hours and minutes
- Dates swapped automatically if reversed
Common uses
- Counting days to a deadline or exam
- Working out the length of a contract or loan
- Hotel stays, holidays and leave
- Age of a project or relationship in days
- Notice periods and waiting times
Counting days in practice: notice periods, nights and days, history and spreadsheets
Counting the days between two dates comes up in contracts, rent, interest, travel and countdowns. The arithmetic is easy for a computer, but people still disagree about whether to count the first day, the last day or both. This guide works through an example between two Pakistani national days, explains common counting conventions, shows how to do the same calculation in a spreadsheet and explains why historical dates can be tricky.
A worked example
From Independence Day on 14 August 2026 to Quaid-e-Azam Day on 25 December 2026 is 133 days, exactly 19 weeks, or 4 months and 11 days. If both days are counted, the total is 134. Roughly 95 of those days fall on weekdays. Which figure you need depends on the question being asked.
Counting conventions
- Exclusive of the end date: the standard way of counting elapsed days, where 1 to 2 January is one day.
- Inclusive of both dates: used for events, leave and bookings described as "from" one date "to" another, where 1 to 2 January covers two days.
- Nights: hotel stays count nights, so arriving on 1 January and leaving on 4 January is three nights.
Contracts, leave policies and booking terms usually state which convention applies, and it is worth checking before relying on a count.
Notice periods and leave
Employment contracts often require notice of a set number of days or months. A notice period of one month and one of 30 days can end on different dates: notice given on 1 February 2026 ends around 1 March for one month but around 3 March for 30 days, because February is short. Annual leave may be counted in working days only, excluding weekends and public holidays. Reading the policy wording carefully prevents disputes.
Interest and rent
Interest on savings, loans and late payments is often calculated per day, so the number of days directly affects the amount. Rent for part of a month may be charged pro rata, by dividing the monthly rent by the days in that month and multiplying by the days occupied. For a monthly rent of Rs 60,000 in a 30-day month, 11 days cost Rs 22,000.
Spreadsheets
In most spreadsheets, subtracting one date cell from another gives the number of days between them, as long as both cells are formatted as dates. Excel's DATEDIF function can give whole years, months or days between two dates, and NETWORKDAYS counts working days, with an optional list of holidays. Checking a spreadsheet result against this calculator is an easy way to catch formatting errors.
Leap years
A year has 366 days if it is divisible by 4, except for years divisible by 100, which are leap years only if they are also divisible by 400. So 2024 and 2028 are leap years, 1900 was not and 2000 was. Any count that crosses 29 February in a leap year includes the extra day automatically.
Historical dates
The Gregorian calendar was introduced in 1582 to correct drift in the older Julian calendar, but countries adopted it at different times. Britain and its colonies switched in 1752, skipping eleven days in September of that year. Counting days across these changes using today's calendar rules can give different answers from the dates written at the time, which matters for historians and genealogists.
A quick way to remember month lengths
Counting on your knuckles is a well-known trick: make a fist and count the months across the knuckles and the dips between them. Months that land on a knuckle have 31 days, while those in the dips have 30, or 28 or 29 for February.
Common mistakes
- Mixing inclusive and exclusive counting.
- Counting days when a contract specifies working days.
- Formatting spreadsheet cells as text instead of dates.
- Using modern calendar rules for very old historical dates.
Related tools
To add or subtract days from a date, use Date Calculator. For working days only, try Business Days Calculator, and for weeks, Weeks Between Dates Calculator.
Personal goals and habits
People often count days for personal goals, such as the days since starting a new habit or the days of annual leave remaining. Writing down the start date and checking progress with the calculator keeps the count accurate, especially across month ends, where mental arithmetic often slips by a day.
Age in days
For newborn babies, age in days matters in the first weeks, for example to time health checks and early vaccinations. Entering the date of birth and today's date gives the exact age in days, which is easier and more reliable than counting on a wall calendar.
Counting backwards
The same calculation works for dates in the past, such as how many days ago an event happened or how long a warranty has been running. Entering the earlier date first and today's date second gives the elapsed time, while swapping them shows the same number of days, so the order rarely matters for the count itself.
Limits
The calculator uses the standard Gregorian calendar for all dates. It does not include public holidays, and contracts may define days differently.
Further reading: How to Calculate Age, Date Differences and Working Days.
Frequently asked questions
How do I calculate the number of days between two dates?
Subtract the earlier date from the later one. Most people count each midnight crossed, so 1 to 2 January is one day. To count both the first and last day, add one, which is what the include end date option does.
How many days are there between two dates including both dates?
The difference plus one. From 1 to 31 March is 30 days, or 31 days if both the 1st and the 31st are counted, which is the usual way to count the length of an event or a booking.
How many weeks are between two dates?
Divide the days by 7. The calculator shows whole weeks and leftover days: 100 days is 14 weeks and 2 days. For a decimal answer, 100 ÷ 7 = 14.29 weeks.
How are months counted between dates?
By stepping one calendar month at a time from the start date, then counting the days left over. Because months have 28 to 31 days, a month is not a fixed number of days.
Does the calculator handle leap years?
Yes. It uses the real calendar, so 29 February is counted in leap years such as 2024 and 2028, and centuries follow the Gregorian rule: 2000 was a leap year, 2100 will not be.
How many weekdays are between two dates?
The calculator counts Monday to Friday from the start date up to, but not including, the end date unless you tick the option. Public holidays are not removed; use the business days calculator for that.
How many days are in a year?
365 in a common year and 366 in a leap year. The average Gregorian year is 365.2425 days, which is why one year in four is a leap year, with exceptions for most century years.
Can I count days in the past?
Yes. Enter any two dates, past or future. If the end date is before the start date, the calculator swaps them and tells you, so the count is always positive.