Days between dates calculator
Pick two dates to see the days, weeks, months, and weekdays between them, or move one date forward or back by a number of days to find a deadline. The calculator counts whole days in UTC, so a daylight saving change inside the range can't knock the result off by one. It runs in your browser; nothing you enter is uploaded.
Days between two dates
Add or subtract days
How the days are counted
The calculator counts how many days you move forward to get from the start date to the end date: November 6, 2026, to December 25, 2026, is 49 days. It turns each date into a day number in UTC and subtracts. Working in UTC matters when the range crosses a daylight saving change, such as the US switch on March 8, 2026. That day is 23 hours long in local time, so a calculator that subtracts local times and divides by 24 hours can come out one day short.
The weeks and days line splits the same total: 49 days is 7 weeks and 0 days. The months and days line counts whole calendar months from the start date, then the days left over, so November 6 to December 25 is 1 month and 19 days. When a month is too short to have the start day, the month counts as ending on its last day: one month after January 31 is February 28, or February 29 in a leap year.
Including the end date
With the box unticked, the count works like nights in a hotel: check in on June 1, check out on June 5, and that's 4 nights. Ticking "Include the end date" adds one day. Tick it when both dates count, like a festival that runs from June 1 to 5 and lasts 5 days. If the last date is a day you work, attend, or pay for, include it.
Weekdays
The weekday count is how many of the counted days fall on Monday to Friday. From one Monday to the next is 5 weekdays with the end date left out, and 6 with it included. Public holidays differ by country and region, so the calculator doesn't remove them, and you'll need to subtract yours yourself. A year has 260, 261, or 262 weekdays, depending on the day it starts on and whether it's a leap year.
In Excel or Google Sheets, =B1-A1 gives the days between two dates, and =NETWORKDAYS(A1, B1) gives the weekdays.
NETWORKDAYS counts both the start and the end date, and it takes a range of holidays as an optional third argument. In Python,
(date(2026, 12, 25) - date(2026, 11, 6)).days returns 49.
Adding or subtracting days
The second part moves a date forward or back by a number of days, which is how you find a deadline, the end of a notice period, the last day of a return window, or a due date. The date you start from is day 0, so adding 1 day to a Monday gives Tuesday, and 90 days after November 6, 2026, is Thursday, February 4, 2027.
Questions
Does it work for dates before 1582?
It counts them, but it treats every date as a Gregorian date, as JavaScript does. Countries switched from the Julian calendar at different times (Britain and its colonies in 1752), so for a date before the local switch, the result can differ from the date people wrote down at the time.
What if the end date is before the start date?
The calculator swaps them and tells you it did, so you get the same counts as with the dates the other way around.