Days Between Dates Calculate

Days Between Dates

Enter two dates to get the elapsed days, full weeks, and calendar months. Turn on Count both dates when each date in the range counts, including the start and end.

Updated 2 sources

Days Between Dates

MyCalc · Calculation date 2026-12-01
https://mycalc.xyz/days-between-dates/#date-difference
Inputs
Start dateJan 15, 2026
End dateMar 2, 2026
Count both datesfalse

Results

Calendar days
46
Full weeks
6
Days beyond full weeks
4
Full calendar months
1
Days beyond full months
15

Embed

How it’s calculated
  1. Count the calendar days
    D = ord(B) − ord(A) + i
    Mar 2, 2026 − Jan 15, 2026 = 46
  2. Group days into weeks
    W = ⌊D ÷ 7⌋
    ⌊46 ÷ 7⌋ = 6
  3. Count days after the last full month
    d = (B + i) − (A + M)
    Mar 2, 2026 − Feb 15, 2026 = 15

How to count days between dates

  1. Enter the two dates you want to compare.
  2. Leave Count both dates off for elapsed time, or turn it on to count the entire range.
  3. Read Calendar days, or use Full weeks and Days beyond full weeks for a weekly breakdown.
  4. Open How it’s calculated to check the date order and the last complete month.

Date difference formula

D=ord⁡(B)−ord⁡(A)+i,W=⌊D/7⌋,r=D−7WD=\operatorname{ord}(B)-\operatorname{ord}(A)+i,\qquad W=\left\lfloor D/7\right\rfloor,\qquad r=D-7W

AA is the earlier date and BB is the later one. The ordinal assigns a consecutive number to every calendar date. ii is one for inclusive counting and zero for elapsed time. DD is the day total, WW is the number of complete weeks, and rr is the remainder in days. For months, advance the start by the largest whole number of calendar months that fits before or at the counting boundary. Then count the days left over.

Worked example

Count nights between check-in and checkout

The booking starts on July 2 and ends on July 7. Leave both endpoints unchecked because checkout is the day the stay ends.

Start date: Jul 2, 2026 · End date: Jul 7, 2026 · Count both dates: false

Calendar days
5
Full weeks
0
Days beyond full weeks
5
Full calendar months
0
Days beyond full months
5

Measure a period that starts on the last day of a month

Compare January 31 with March 5 to see how the month count uses February’s last day when the original day is unavailable.

Start date: Jan 31, 2026 · End date: Mar 5, 2026 · Count both dates: false

Calendar days
33
Full weeks
4
Days beyond full weeks
5
Full calendar months
1
Days beyond full months
5

Calendar intervals from the same January date

The start is January 31 in a leap year. The rows show how elapsed days and full months advance as you move the end date.

End dateElapsed daysFull monthsRemaining days
Feb 29, 2024 2910
Mar 1, 2024 3011
Mar 31, 2024 6020
Apr 8, 2024 6828

Use the rule that matches your schedule

Subtract dates for a stay, a wait, or a gap between milestones. Count both dates for a roster that includes each day printed on it. For example, a venue can list opening and closing dates as two included entries even though only one day elapsed between them. Confirm which convention your team uses before comparing two schedules.

To report progress as a share of a schedule, count the elapsed and planned days using the same setting and then express the elapsed share as a percentage. If the comparison starts on a birthday, the age calculator gives full years and the date of the next birthday. For borrowing costs, use the term and repayment schedule in the loan payment calculator.

Frequently asked questions

Should I include the last day when counting dates?

Include both dates when the range lists every date covered, such as all dates an event is open. Leave the option off for elapsed time or a hotel checkout date. Read the wording on the booking or schedule before deciding which total to use.

How do I calculate weeks between two dates?

Divide the total day count by seven. The whole part is the number of complete weeks, and any remaining days are displayed separately. Choose your endpoint setting first because it can move the result from a partial week to a full week.

Why do two calendar months have different day totals?

Calendar months have different lengths. A full month is counted by advancing the earlier date by one month on the calendar. If the corresponding day is missing, use the last day of the destination month. The day count still reflects each actual calendar date.

Does the result include weekends and holidays?

Yes. Saturday, Sunday, and public holidays count the same as any other date. To measure business days, use the applicable work schedule or holiday calendar. Check whether the organization treats an observed holiday or a day off in lieu as working time.

What if I enter the dates in reverse?

You get the same nonnegative interval. The calculator uses the earlier date as the point of reference for the calendar months. If you need to record whether something happened before or after a target, keep the direction separately from the size of the gap.

Method and sources

The tool uses the proleptic Gregorian calendar and UTC date arithmetic. The elapsed count is independent of clock changes. Month offsets are anchored to the earlier day of the month and constrained to the destination month. In inclusive mode the counting boundary advances by one day.

Sources

  1. U.S. Naval Observatory · Introduction to Calendars
  2. TC39 · Temporal.PlainDate calendar arithmetic

Updated

Search calculators