Date interval

Date Calculator

Find the absolute elapsed-day difference between any two calendar dates.

Two dates

Select a start and end date

Date
Date summary

Calculated interval

The date difference will appear here

The order of the dates does not affect the absolute result.

How Does This Date Difference Calculator Work?

This Date Calculator finds the absolute number of elapsed calendar days between two dates. It also expresses that day gap as approximate decimal weeks. Use it to compare dated records, check a planned interval or measure a gap until or since an event after choosing the reference date yourself.

Both inputs are calendar dates without clock times. The result counts all days and stays nonnegative when you reverse the entries. This form does not add days to a starting date, subtract a duration to find a date or return a calendar years/months/days breakdown.

How to Calculate Days Between Two Dates

  1. Choose First date as one endpoint. If you are measuring a gap from today, select today explicitly.
  2. Choose Second date as the other endpoint. Either may be the earlier date; their order does not change the absolute result.
  3. Select Calculate date difference. The calculator compares the dates with no time-of-day input.
  4. Read Date difference and the repeated Elapsed difference in days. Matching dates give zero rather than an inclusive count of one.
  5. Read Approximate weeks as total days divided by seven, displayed to at most two decimals. Check the Counting method reminder before applying the answer to another convention.

Both fields require valid dates. The calendar control may display a local date format, while the calculation receives one year/month/day value per field. There are no weekend, holiday, inclusive-count, time-zone or date-addition settings.

Date Difference and Decimal Weeks Formulas

Elapsed days D = absolute calendar-date difference

Approximate decimal weeks = D ÷ 7

The day result counts steps from one date to the other. It does not subtract the day-of-month labels alone, assume a month has 30 days or assume every year has 365 days. The calendar calculation supplies the actual month and leap-year lengths.

The endpoint returns an integer day count. The interface divides that count by seven and formats the week result to at most two decimals. For example, 25/7 becomes 3.57 weeks; it is not a notation for three weeks and 57 days.

PHP’s date-difference documentation illustrates elapsed intervals and distinguishes clock-time considerations. The installed calculator code chooses an absolute date-only gap with both dates at start of day. It does not divide a measured timestamp duration into fixed 24-hour blocks.

Date Inputs and Interval Results

First date
One required calendar-date endpoint. Choose the reference date yourself, including today when appropriate.
Second date
The other required endpoint. Input order does not determine a positive or negative sign here.
Date difference / elapsed difference, D
The same absolute integer day gap in the featured result and repeated card. Weekends and holidays are included.
Approximate weeks
D/7 displayed as a decimal to at most two places. This is not a whole-week-and-remainder breakdown.
Counting method
A fixed “Absolute elapsed days” reminder, rather than a selectable inclusive or business-day option.

Date Difference Across a Leap Day

Illustrative example. Enter February 23, 2028 and March 19, 2028. Since February 2028 has 29 days, the first part of the gap is 29 − 23 = 6 days to February 29.

From February 29 to March 19 is another 19 days. The total is 6 + 19 = 25 days. The week equivalent is 25 ÷ 7 = 3.571428… , displayed as 3.57 in Approximate weeks.

The same gap can separately be described as three complete weeks and four days because 25 = 3 × 7 + 4. That is a different notation from the decimal week card. The page does not show a separate remainder-day card.

Calculation check. Independent calendar subtraction and the endpoint agree for the hypothetical interval. Reversing the dates still gives 25 days. Using the matching month/day pair in 2027 gives 24 days because that February has only 28 days.

Example comparison. Review the inputs and results together using the assumptions in the caption.

Hypothetical February 23 to March 19 intervals; absolute elapsed counting
YearElapsed daysApproximate weeks
2027243.43
2028253.57
2100243.43

Decimal Weeks and Calendar Counting Rules

Decimal weeks and weeks-plus-days are different displays. For 25 days, decimal weeks are 25/7≈3.57, while a complete-week breakdown is three weeks plus four days. The decimal digits are fractions of a week, not leftover day counts.

Choosing a representation for the same 25-day gap
RepresentationValueReturned here?
Elapsed calendar days25 daysYes
Approximate decimal weeks3.57 weeksYes
Whole weeks plus days3 weeks, 4 daysNo separate breakdown
Inclusive list of dates26 datesNo inclusive mode

An inclusive list adds both boundary dates as included items. That convention produces one more date label than the elapsed gap. It does not change the actual distance between the endpoints. Matching dates therefore give zero here, even though a list containing that date has one item.

Working-day counts need additional rules for weekdays and holidays. Likewise, calendar months cannot be recovered by dividing this day count by 30, since months have different lengths. Use the appropriate related tool or a separately defined rule when the task needs another kind of interval.

How to Read Your Date Difference

Use the integer day result when you need the exact calendar gap returned by this model. The approximate weeks card summarizes it in another unit, so multiplying that rounded value by seven may not reconstruct the exact total. For 3.57 weeks, the product is 24.99 days rather than the original 25.

The result has no directional label. A past event compared with today and a future event compared with today can produce the same absolute number. Keep the dates with the output rather than expecting the number to say “ago” or “until.”

An inclusive list of every date from the earlier endpoint through the later endpoint contains D+1 dates. Working-day counts need a separately defined schedule and holidays. This form returns neither alternate convention and does not interpret a deadline rule.

Leap years can change the gap when February 29 lies inside it. The US Naval Observatory’s Gregorian rule includes century exceptions, so dividing a year difference by four is not a general substitute for calendar subtraction. For exact elapsed clock hours, use a method with times and time zones.

Common Date Difference Mistakes

  • Expecting a resulting date after entering only a starting date and a number of days.
  • Reading decimal weeks as whole weeks followed by leftover days.
  • Using only day-of-month subtraction across a month or year boundary.
  • Adding an inclusive day without checking which convention the task needs.
  • Expecting a negative result when dates are reversed.
  • Assuming weekends, holidays or deadline rules are applied.
  • Reconstructing exact days from the rounded week display.

Date Difference Questions

What does this Date Calculator do?

It finds the absolute elapsed-day gap between two supplied dates and shows the approximate decimal-week equivalent. It does not add a duration to a date.

Are both endpoint dates included?

It measures the elapsed difference without an extra inclusive day. Matching dates give zero; an inclusive list of all date labels would contain one more date than the gap.

Why is the result positive when I reverse the dates?

The calculator returns an absolute gap rather than a signed direction. Keep the endpoint dates with the result to show which event is earlier.

What does 3.57 in Approximate weeks mean?

It is the rounded decimal result of dividing the day count by seven. It does not mean three weeks and 57 days.

Can I use it for days until or since an event?

Yes. Choose today as one endpoint and the event date as the other. The tool does not automatically choose today or label the result as past or future.

Does it exclude weekends and public holidays?

No. It counts calendar days and has no workweek or holiday settings.

Can it find a date 30 days from a starting date?

No. This form needs two complete dates. It has no starting-date-plus-duration mode.

Does a date gap measure exact elapsed hours?

No. There are no clock-time or time-zone inputs. Calendar dates alone do not establish an exact timestamp duration across clock changes.

Sources and References