# Days Between Two Dates - Weeks, Months, Years and Business Days

Page: https://hirantha.me/tools/date-difference-calculator
Part of: Hirantha Sandaruwan Lakshan free tools (https://hirantha.me/tools)
Updated: 2026-10-13

Count the days between two dates in weeks, months and years, with business days, an end-date option and Sri Lanka holidays left out if you like.

This is a free tool that runs in the browser: open the page to use it. File tools process files on the visitor's own device; files are never uploaded or stored. No account, sign-up, payment or watermark.

Pick two dates to see how many days lie between them, also as weeks and days and as years, months and days. Choose whether to count the end date too, and see how many of the days are business days (Monday to Friday), with the option to leave out Sri Lanka's public holidays for 2026 and 2027. It runs in your browser and sends nothing anywhere.

The days counted are the dates from the earlier date up to, but not including, the later one, so 1 January to 31 January is 30 days. Turn on 'count the end date too' to include the later date as well. That gives 31 days and suits a period such as 'from 1 to 31 January, both included'. If the end date is before the start date, the gap is shown as a positive number and the tool tells you the order.

Weeks and days divide the days by seven. For years, months and days, the tool adds whole months to the earlier date for as long as they fit, using the last day of a shorter month when needed (31 January plus one month is 28 February), and counts the days left over.

Business days are the Monday to Friday dates among the days counted. With the holiday option on, public holidays that fall on a weekday are left out too. The holiday list is the one the Sri Lanka holidays page uses, taken from the Central Bank of Sri Lanka, and it covers 2026 and 2027 only. Outside those two years the tool leaves out weekends only and warns you.

Everything is counted on the calendar in whole days, so your time zone and daylight saving make no difference. Hours are 24 times the days. The tool covers the years 1583 to 9999 in the Gregorian calendar.

Q: How many days are there between two dates?
A: Subtract the earlier date from the later one. 1 January to 31 December 2026 is 364 days, or 365 if you count both days. The tool does this for any two dates from 1583 to 9999.

Q: Should I count the start date and the end date?
A: It depends on the question. For 'how many days from A to B', do not count the end date. For the length of a period with both days included, such as a leave, a stay or a course, count both days. The toggle switches between the two.

Q: How many business days are between two dates?
A: Business days here are Monday to Friday. Choose the Sri Lanka option to leave out public holidays on weekdays too, for 2026 and 2027. Saturday is treated as non-working, because the Central Bank's lists make every Saturday and Sunday a bank holiday, so adjust the result if you work a six-day week. The holidays are the public and bank holidays in the Central Bank's lists, which mark only some of them as mercantile holidays, so a private employer's days off can differ.

Q: What if the end date is before the start date?
A: The tool swaps them for the count, shows a positive number of days and tells you the end date comes first. The years, months and days are counted from the earlier date to the later one.

Q: Why do I sometimes get a result like 1 month and 30 days?
A: Months have different lengths. The tool adds whole months to the earlier date and counts the rest in days, and when the start day is 31 a shorter month uses its last day. From 31 January to 30 March 2026 that is 1 month and 30 days: 28 February, then 30 more days.

Q: Are holidays outside 2026 and 2027 left out?
A: No. Only the 2026 and 2027 Sri Lanka lists are stored. For any day outside those years the tool leaves out weekends only, and it shows a warning when your range reaches beyond them.

Q: Does the time of day matter?
A: No. The tool counts calendar dates, midnight to midnight, so time zones and daylight saving cannot change the answer.

Sources: Central Bank of Sri Lanka: bank holidays for 2026 (https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2026); Central Bank of Sri Lanka: bank holidays for 2027 (https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2027); Gregorian calendar - Wikipedia (https://en.wikipedia.org/wiki/Gregorian_calendar); Howard Hinnant: chrono-Compatible Low-Level Date Algorithms (https://howardhinnant.github.io/date_algorithms.html)

Related tools:

- [Date calculator (add or subtract days, months, years)](https://hirantha.me/tools/date-calculator.md): Add or subtract years, months, weeks and days from any date, or count working days, and see the weekday of the result.
- [Age calculator (years, months and days)](https://hirantha.me/tools/age-calculator.md): Exact age in years, months and days, days, weeks and hours lived, the next birthday and its weekday, and the age on any date.
- [Sri Lanka public holidays 2027 & 2026](https://hirantha.me/tools/sri-lanka-holidays.md): Every gazetted public, bank and mercantile holiday and Poya day, with the next holiday, long weekends and a working-day counter.
- [Day of the week calculator](https://hirantha.me/tools/day-of-week-calculator.md): Find the weekday of any date from 1583 to 9999, plus the day of the year, ISO week number, leap year check and days left in the year.
