Skip to content
DEVELOGCALC

Days Between Dates Calculator

Count the days between two dates, with totals in weeks, months, and weekdays.

Try:

Result

Enter values above to see the result.

Calculations run in your browser. Your inputs are not sent to our server.

Formula

  • Days = day number(end) − day number(start)
  • Inclusive count = Days + 1
day number
days since a fixed reference date, so every month and leap year is counted exactly

How it works

Each date is converted to a serial day number, and the difference between the two numbers is the day count. This is the same as counting how many midnights pass between the dates, so “today to tomorrow” is 1 day.

Turn on “Include the end date” when both dates are part of the span — for example a hotel booking counted in days on site, or a project that runs from Monday through Friday (5 days, not 4).

Worked examples

Countdown to a date

From September 27 to December 25, 2026.

Start date
2026-09-27
End date
2026-12-25
Include the end date (add 1 day)
No
Days
89

Length of an event

A camp from Monday July 6 through Friday July 10 lasts 5 days when both ends count.

Start date
2026-07-06
End date
2026-07-10
Include the end date (add 1 day)
Yes
Days
5

A full leap year

2028 is a leap year, so it contains 366 days.

Start date
2028-01-01
End date
2029-01-01
Include the end date (add 1 day)
No
Days
366

Weekdays are not business days

The weekday count excludes Saturdays and Sundays only. Public holidays vary by country and employer, so subtract them yourself if you need working days.

Why months are not a fixed number of days

Months range from 28 to 31 days, so the years-months-days breakdown counts whole calendar months from the start date rather than dividing by 30.

Last reviewed: