Day Counter Calculator - Days, Weeks, Years Between Dates

Use this day counter calculator to count the days, weeks, months, and completed years between any two dates, with weekday lookup and an optional Mon–Fri work-day count.

Day Counter Calculator

Type the first date in YYYY-MM-DD order, or leave blank to count from today in your local time zone.

Type the second date in YYYY-MM-DD order. Leave blank to count up to today, which is the day counter's 'count to today' mode.

Set to Yes to count the target day itself, or No to count only the days leading up to the target.

Switch to Business days to also show a Mon–Fri-only count alongside the calendar total.

Results

Total days
0days
Total weeks 0weeks
Total months 0months
Completed years 0years
Completed months (Y/M/D) 0months
Remaining days (Y/M/D) 0days
Start weekday 0
Target weekday 0
Business days (if enabled) 0days

What Is a Day Counter Calculator?

A day counter calculator counts the calendar days, business days, weeks, months, and completed years between a start date and a target date in one pass. Type the two dates in YYYY-MM-DD order, or leave either blank to default to today, and the result panel reports the day total, the Mon–Fri work-day total, the same value in weeks and months, the completed Y/M/D breakdown, and the weekday name for both dates. It covers the routine 'how many days from X to Y' question, anniversary tracking, project countdowns, and 'how many days since I started.'

  • Counting days since a past event: Enter the date of a launch, quit date, project kickoff, or new habit and read the elapsed days, weeks, and completed years in one pass.
  • Counting days remaining until a future event: Leave the start field blank to count from today, then enter a wedding, exam, move, or deadline date to read the remaining time in days, weeks, and months.
  • Measuring a date range in business days: Convert a project window, billing period, or notice period into Mon–Fri workdays so sprint planning, HR lead time, and invoice math match a real workweek.
  • Reading the gap as years, months, and days: Use the Y/M/D breakdown when you need an age-style summary of the same range, such as a service anniversary, a tenancy, or a long subscription term.

The result panel keeps the day count, the Y/M/D breakdown, the larger-unit conversions, the weekday lookup, and the business-day count on one screen, so you do not need to switch tools to translate days into weeks, months, or completed years.

When you need a deeper breakdown of the same range with extra toggles, the Days Between Dates Calculator reports the day count alongside extra formats.

How the Day Counter Calculator Works

The day count is a single subtraction between two UTC midnight timestamps, then split into weeks, months, completed Y/M/D, weekday names, and a Mon–Fri work-day count. The math runs in one pass and never depends on the local clock.

totalDays = floor((targetUTC − startUTC) ÷ 86,400,000) + (includeEnd ? 1 : 0)
  • startUTC: The start date parsed as a UTC midnight timestamp. Defaults to today's local date when the field is blank.
  • targetUTC: The target date parsed as a UTC midnight timestamp. Defaults to today's local date when the field is blank.
  • 86,400,000: Number of milliseconds in a calendar day, derived from 24 hours × 60 minutes × 60 seconds × 1,000 milliseconds.
  • includeEnd: Toggle that adds one calendar day to the total when set to Yes, so the target day itself is part of the count.

The day total, the weeks breakdown, the months breakdown, the Y/M/D breakdown, and the business-day total all come from the same start and target timestamps, so a change in the inputs updates every output together.

Counting days from 1 January 2024 to 25 December 2024

Start: 2024-01-01 • Target: 2024-12-25 • Include target day: Yes • Calendar days

(25 Dec 2024 UTC − 1 Jan 2024 UTC) ÷ 86,400,000 = 359 days, +1 inclusive day = 360 days

360 calendar days, 51.43 weeks, 11.83 months, 0y 11m 25d, start Monday, target Wednesday.

A full year minus one week is a useful 'since the start of the year' total for fiscal reporting, project tracking, and personal streak counters.

According to Wikipedia: Julian day, the Julian day is a continuous count of days from the beginning of the Julian period, and it is used in software for easily calculating elapsed days between two events

For date arithmetic that goes the other way — adding or subtracting a fixed number of days to land on a new date — the Date Calculator applies the same UTC midnight math in reverse.

Key Concepts Behind a Day Counter

A handful of small ideas decide what the day count actually means and how the toggles change the numbers you read.

UTC midnight subtraction

Both dates are converted to UTC midnight before the subtraction, so daylight saving transitions, local time zones, and clock changes never shift the day count by an hour.

Calendar days vs business days

Calendar days count every day in the range, including Saturdays and Sundays. Business days walk the range day by day and keep only Monday through Friday, matching a standard workweek.

Inclusive vs exclusive end date

An exclusive end date counts the days leading up to the target but not the target day itself. An inclusive end date adds the target day, which is how most calendar tools draw a deadline.

Years, months, and days breakdown

The Y/M/D breakdown reports whole completed years, then whole completed months in the remainder, then the remaining days, using the same calendar math as ISO 8601 duration labels.

These four ideas are the same regardless of how long the range is, so the only thing that changes is the size of the numbers you read in the result panel.

When the Y/M/D breakdown is the headline answer you actually need, the Age in Years Months and Days Calculator presents the same elapsed calendar years, months, and days in an age-style format.

How to Use This Day Counter Calculator

Run a clean day count in five short steps. The result panel updates as you type, so you can experiment with toggles and date pairs without reloading.

  1. 1 Enter the start date: Type the first date in YYYY-MM-DD order, for example 2024-01-01. Leave the field blank to count from today in your local time zone.
  2. 2 Enter the target date: Type the second date in YYYY-MM-DD order, for example 2024-12-25. Leave it blank to count up to today, the day counter's 'count to today' mode.
  3. 3 Decide whether the target day is included: Set Include the target day to Yes when the target day itself should be part of the count, and No when you want the day-before figure.
  4. 4 Switch to business days for work planning: Set Counting mode to Business days (Mon–Fri only) when the counter should ignore weekends. The calendar total still reports the full Mon–Sun figure.
  5. 5 Read the day, week, year, and weekday breakdown: Use Total days for the headline figure, the Y/M/D line for an age-style summary, the weeks and months lines for planning, and the weekday labels to schedule a meeting or a delivery.

For a project that started on 2024-01-01 and that you want to track on 2024-12-25, type 2024-01-01 in Start date and 2024-12-25 in Target date, keep the inclusive end date set to Yes, and keep calendar-day mode on. The result shows 360 calendar days, 51.43 weeks, 11.83 months, 0y 11m 25d, with start Monday and target Wednesday.

When the event also has a clock time, the Day Countdown Calculator extends the same date math with hours, minutes, and seconds on top of the day count.

Benefits of Using This Day Counter Calculator

The calculator saves you from doing date math in your head and keeps the day, week, month, and completed-year figures in one place.

  • One form, every day-level unit: Type the two dates once and read the calendar total, the Y/M/D breakdown, the business-day total, the weeks, the months, and both weekday names without re-entering values into separate tools.
  • Count from today and count to today: Leave either field blank to default to today's local date, so the same form answers 'how many days since' and 'how many days until' without typing the current date.
  • Inclusive and business-day modes: Switch the toggles to match the way you plan. Inclusive mode is friendlier for event countdowns, while business-day mode matches a real Mon–Fri workweek for sprint and HR math.
  • Real-time breakdown: The result panel updates as you type so you can compare scenarios — for example, with and without the target day — without reloading.
  • Validation built in: The calculator refuses to show a result when the dates are unparseable, so the figures you read always correspond to a valid Gregorian calendar range.

Most people use a day-count tool to settle a small planning question, like 'how long since I quit?' or 'how many work days until launch?', and the toggles let the same calculator answer each question in the unit that matters.

For the same Y/M/D summary applied to a person's birth date, the Age Calculator reports the elapsed years, months, and days from the birth date to today.

Factors That Affect the Day Counter Result

A day count is only as good as the inputs you give it, and a handful of small choices can shift the total by a full day or a full business day.

Inclusive vs exclusive end date

Flipping Include the target day from Yes to No removes exactly one calendar day from the total. Use the inclusive setting when the target day itself should be part of the count.

Calendar vs business days

Switching to business days drops every Saturday and Sunday from the work-day count. A 14 calendar-day window across two weekends drops to 10 business days.

Leap years

A range that crosses 29 February picks up one extra calendar day. The UTC midnight subtraction handles the leap day automatically, so there is no special case to add.

Reversed direction

When the target date is earlier than the start date, the calculator returns a negative day count and a negative Y/M/D breakdown that follow the same rules in the other direction.

Y/M/D vs total days

The Y/M/D breakdown is a calendar summary, not an arithmetic one. A 360-day range reports as 11 completed months plus 24 or 25 days, not as 12 months, because the calendar months are not all the same length.

  • Business-day mode removes weekends but does not remove public holidays. If a holiday falls inside the range, subtract it from the business-day total manually.
  • The Y/M/D breakdown is a calendar summary, so a 30-day range may read as 1 completed month, while a 31-day range may still read as 1 completed month plus a few days because the calendar months are not equal in length.

These factors rarely move the total by more than a single day, but they explain why a quick mental estimate can disagree with the calculator by 12 or 24 hours.

According to BIPM (SI units), a calendar day is 24 hours, an hour is 60 minutes, a minute is 60 seconds, and a second is 1,000 milliseconds, giving 86,400,000 milliseconds per day

According to U.S. Office of Personnel Management (OPM), the basic federal workweek is 40 hours and most federal employees work on a Monday through Friday schedule

For a richer breakdown of the same range with hours, minutes, and seconds, the Time Between Dates Calculator reports the elapsed time in every smaller unit on top of the day count.

Day counter calculator showing days, weeks, months, and years between a start date and a target date with weekday lookup
Day counter calculator showing days, weeks, months, and years between a start date and a target date with weekday lookup

Frequently Asked Questions

Q: How do I count the days between two dates?

A: Convert the start and target dates to UTC midnight, subtract the start from the target, divide the result by 86,400,000 milliseconds, and floor the quotient. The day counter calculator does this in one pass and shows every day-level unit on the same screen.

Q: How many days have passed since a past date?

A: Enter the past date in the start field and leave the target field blank to count to today. The result shows the elapsed days, weeks, months, and completed Y/M/D summary.

Q: Does the day counter include the end date?

A: The default mode counts the target day itself, the way most calendars and event pages draw a deadline. Flip the Include the target day toggle to No when the target day should not be part of the count.

Q: How many business days are between two dates?

A: Set Counting mode to Business days (Mon–Fri only). The calculator walks the date range one day at a time and counts only Monday through Friday, so weekends are skipped. Public holidays are not removed by default.

Q: How many years, months, and weeks are between two dates?

A: The Y/M/D line reports whole completed years, then whole completed months in the remainder, then the remaining days. Weeks are the day total divided by 7 and months are the day total divided by 30.4375, both rounded to two decimals.

Q: Why do two day counters give different results?

A: Different tools may include the end date, use local clock time, apply a different business-day rule, or report weeks and months instead of calendar days. This calculator uses whole UTC calendar days and defaults both fields to today when blank.