Skip to content
Calculator Collection

Day Counter

Count the number of days between two calendar dates. Works forward or backward; useful for deadlines, project timelines, and age-in-days.

Last updated: September 2026

Compare 3 scenarios
Fill in the required fields to see your result.

Compare with similar

About this calculator

The day count between two dates is the elapsed number of full 24-hour periods. This calculator parses the two dates in ISO 8601 form (YYYY-MM-DD), computes the millisecond difference, and divides by 86 400 000 (the number of milliseconds in a day).

It rounds to the nearest whole day, so daylight-saving-time shifts (which subtract or add an hour, well under a full day) do not offset the result. If you need hour-level precision across a DST boundary, work in UTC or use a full datetime pair.

Backward differences (end date earlier than start) return a negative number, which is often what you want for questions like 'how many days ago was…'. If you always want a positive count, take the absolute value.

How to use

Example — days in a fiscal year. Start = 2026-01-01, End = 2026-12-31. Result = 364 days (the year 2026 is not a leap year, so 365 total days minus one because Jan 1 and Dec 31 are 364 days apart, not 365). For a full year including both endpoints, add 1. Example — days until a deadline. Start = 2026-09-18 (today), End = 2026-12-25. Result = 98 days. That is your countdown in days. Divide by 7 to get weeks (14.0), or add to today's calendar to plan milestones.

Frequently asked questions

Are the start and end dates included in the count?

This calculator returns the difference between the two dates, so both endpoints are excluded (start and end count as the same 'edge', which is one day apart from itself = 0). To count 'days from Monday through Friday inclusive', enter Monday and Saturday, or enter Monday and Friday and add 1.

How does daylight saving time affect the count?

DST shifts the clock by an hour twice a year, but this calculator rounds to whole days, so DST cannot change the answer. The underlying arithmetic uses UTC millisecond timestamps; the rounding step absorbs the ±1 hour DST offset.

Can I use it for age in days?

Yes. Enter the person's date of birth as the start date and today's date as the end date. The result is age in days. Divide by 365.25 (accounting for leap years) to get years, or by 30.44 for months. This is the same math the pregnancy calculator at /en/calculators/health/pregnancy-due-date/ uses on gestational age.

What date format does it accept?

ISO 8601 (YYYY-MM-DD) is the safest — it is unambiguous across locales. Formats like '3/4/2026' are parsed by the JavaScript Date constructor, but the interpretation differs by locale (US: March 4, UK: April 3). Stick with YYYY-MM-DD to avoid off-by-a-month bugs.

Related calculators

Sources & references