Skip to content

STEMSTUDIO

Count days between dates

Calculator · runs on this device

Count days between dates

Days, weeks, months and business days between two dates — or the date N days away.

  • Free, no account
  • Nothing is sent

Help

Saturdays and Sundays excluded; public holidays are not. Both end dates are counted. When shifting by months, a target month without that day clamps to its last day (31 March plus one month is 30 April). Saturdays and Sundays are skipped; public holidays are not. The starting date itself is not counted — five business days after a Friday is the following Friday.

Processing, communication and stored data

Get the span between two dates in days, weeks, months and business days at once, or shift a date by days, weeks, months or business days. Dates you type never leave the browser.

Questions

Are leap years handled?

Yes. Spans that cross 29 February are counted correctly. A leap year is any year divisible by four, except centuries not divisible by four hundred — 2000 was a leap year, 2100 will not be — and that is the rule used here.

Can I use dates in the past?

Yes. If the end date falls before the start date the two are swapped automatically and a note says so. In shift mode, choosing earlier moves backwards. The fields are the browser’s own date pickers, so any four-digit year works.

Can I use it to work out an age?

As an approximation, yes: put the birth date in the start field and today in the end field, and divide the month figure by twelve. Legal definitions of age differ by country, though, so do not use this figure where an official one is required.

Does it account for times or time zones?

No. It works with whole dates only, all handled as midnight UTC, so it cannot report a span in hours and minutes. The upside is that daylight-saving transitions never shift the count by a day.

Can it exclude public holidays?

No — weekends only. Holidays vary by country and move from year to year, and labelling a figure as business days without an accurate holiday table would be misleading. Subtract the holidays that fall inside the span from the figure shown.

Ratings from users

Ratings appear once there are 10.

Report a problem or suggest something

The tool name, this page’s path and your browser type are sent with it. Files are never sent. For a reply, use the email on the Contact page.