Date calculators

Date difference calculator

Find the calendar days, weeks and completed months between two dates.

Your starting point

Your result
Let’s make it clear.
Choose your inputs, then calculate.

Calculated in your browser. Your inputs are not uploaded.

Find the calendar days, weeks and completed months between two dates. The ordinary difference counts boundaries between selected calendar dates. Adjacent dates are one day apart, while equal dates have zero separation. Including both selected dates answers a different question: how many named dates belong to the range.

Choose separation or an inclusive range

A backward range retains its direction as a negative signed result. The inclusive choice increases the magnitude by one. The calendar-unit span and weeks-and-days row still explain the separation, so they should not be read as another inclusive schedule count.

Multiplying by twenty-four does not automatically provide precise elapsed local hours. A dated event needs times and zones, especially across clock changes.

Two questions hidden in the same phrase

A library says a book was borrowed on Monday and returned on Friday. The two written dates are four transitions apart. If the library is counting dates on which the book was recorded as out, it may count Monday, Tuesday, Wednesday, Thursday and Friday, for five dates. Select Include both selected dates for the second question. Use the ordinary difference for the first. In both cases write down what one count means. An extra day is often a policy choice that the arithmetic simply exposes.

Draw a small timeline if the period is new to you. Put the start date at zero. Advance one number every time you cross a midnight on the civil calendar, without thinking about the clock's hour. The last label is the number of transitions. Counting the date labels instead starts the numbering at one. On one selected date those two interpretations give zero and one respectively. This is a quick diagnostic for a spreadsheet whose output always looks one day different.

ScenarioEntriesWhat the calculator showsHow to use it
Arrival Friday and departure MondayStart date = 2026-06-12, End date = 2026-06-15, Include both selected dates = no3 days. Calendar-day difference. Calendar span = 0y 0m 3d, Weeks and days = 0w 3d, Direction = ForwardThe ordinary separation corresponds to three overnight transitions.
Both booking dates includedStart date = 2026-06-12, End date = 2026-06-15, Include both selected dates = yes4 days. Calendar-day difference. Calendar span = 0y 0m 3d, Weeks and days (between dates) = 0w 3d, Direction = ForwardOnly the counting convention changes. Four calendar dates appear in the occupied range.
March after the clocks changeStart date = 2026-03-29, End date = 2026-03-30, Include both selected dates = no1 day. Calendar-day difference. Calendar span = 0y 0m 1d, Weeks and days = 0w 1d, Direction = ForwardRead the result as a calendar day and distinguish it from the exact timed duration.
Leap day inside the pathStart date = 2028-02-28, End date = 2028-03-01, Include both selected dates = no2 days. Calendar-day difference. Calendar span = 0y 0m 2d, Weeks and days = 0w 2d, Direction = ForwardTwo transitions occur because there is a date between the endpoints.
Same date recordStart date = 2026-12-13, End date = 2026-12-13, Include both selected dates = yes1 day. Calendar-day difference. Calendar span = 0y 0m 0d, Weeks and days (between dates) = 0w 0d, Direction = ForwardA one-day date listing can have equal endpoints.

Read the calendar span before rounding to a month

The supporting calendar span breaks separation into completed anchored years and months plus remaining days. A month is a meeting with the original calendar day in a later month, with shorter months adjusted to their last available date. The total calendar days row and the anchored span carry different information. Save the day count if a threshold is stated as a fixed number of days. Keep the span when the reader needs to recognise the actual anniversaries.

The weeks-and-days line describes elapsed separation between the date labels, even with inclusive counting selected. A 29-day separation makes four complete weeks and one remaining day. Counting both endpoints would produce 30 date labels and would not change their positions on a timeline. Use the result label to tell someone which of these figures they are looking at. This is particularly useful when supplying both a duration and a date range in the same report.

Compare equal, forward and reverse examples

A controlled example: Four boundaries separate the weekdays.

Start date: 2026-11-23. End date: 2026-11-27. Include both selected dates: false.

The primary result is 4 days, labeled “Calendar-day difference”. Calendar span: 0y 0m 4d. Weeks and days: 0w 4d. Direction: Forward.

The ordinary difference counts boundaries between selected calendar dates. Adjacent dates are one day apart, while equal dates have zero separation. Including both selected dates answers a different question: how many named dates belong to the range.

A controlled example: Including both selected dates counts the named dates instead.

Start date: 2026-11-23. End date: 2026-11-27. Include both selected dates: true.

The primary result is 5 days, labeled “Calendar-day difference”. Calendar span: 0y 0m 4d. Weeks and days (between dates): 0w 4d. Direction: Forward.

A controlled example: Reversing the range keeps a negative direction.

Start date: 2026-11-27. End date: 2026-11-23. Include both selected dates: true.

The primary result is -5 days, labeled “Calendar-day difference”. Calendar span: 0y 0m 4d. Weeks and days (between dates): 0w 4d. Direction: Backward.

Dates on a form may represent different cutoffs

For a cabin booking from Friday to Monday, the accommodation can describe Friday, Saturday and Sunday as three nights. Calendar separation from Friday to Monday is three. If you need the number of civil dates partly occupied across arrival and departure, you might include Monday for a four-date result. Whether you can access the cabin after checkout is a separate operational fact. Ask whether the report needs nights, calendar days, available working dates or elapsed hours. That is the part the original two dates cannot settle on their own.

A team using a signed report can retain the start and end in the original order. If a start is later than its end the negative day result makes the reversal visible. In a backwards inclusive comparison, the magnitude adds one and the result retains the negative direction. If your reporting method expects a nonnegative period, check the original dates before reversing them. The UI's direction line is an independent check on whether the two endpoints were entered in the intended order.

When the local clocks move

The calculator counts calendar-date boundaries. In Dublin, 29 March to 30 March 2026 is one date transition. Between midnight at the start of those dates only 23 actual hours pass because the clock advances. A delivery agreement measured in exact hours needs both timestamps and the relevant zone. Use the dated time duration calculator for that kind of period. For a count of dates that exclude some weekends or holidays, start with the business days calculator.

Detect a discrepancy between two source records

Suppose a signed report says equipment was available from 2 April to 9 April, and a spreadsheet shows seven. Read seven as the distance from the 2nd to the 9th. A date roster that includes the full starting and ending dates shows eight. Then ask how the roster handles equipment that was returned before opening hours on the final date. The answer can be a seven-date operating count even though the inclusive civil span is eight. Documenting the starting and closing conventions makes it possible to resolve this issue without treating either spreadsheet formula as automatically correct.

A calendar range can also be part of an hourly system. Verify whether the original source's endpoints are stored as midnight or as local opening times. A timed answer requires both endpoints resolved to instants.

Date difference questions

Why does the same date produce zero?

The elapsed count measures transitions from the starting date to the ending date. With both inputs equal the path has no transition. Choose inclusive counting to get one date in the range.

What changes when I include both dates?

The primary count includes the first and last dates. This adds one to the size of a date separation. It applies once to a range with equal endpoints and preserves the original direction if reversed.

Can I count nights with this result?

Use the ordinary separation when a trip uses one overnight stay for each transition between arrival and departure dates. Check the booking's own terms for daytime access, check-in or additional charges.

Why can the periods have the same number of days but different month spans?

Calendar months have different lengths. The supporting span tracks anniversaries anchored to the earlier date. A fixed number of date transitions can cross different numbers of those anniversaries in different seasons.

Does the year number have to be modern?

The form calculates dates using Gregorian rules in years 0001–9999. A historical record may have used a different civil calendar. Confirm or convert that convention before treating the result as a historical weekday or period.

What if I need Monday through Friday only?

Use business days and select a Saturday and Sunday weekend. Add holiday dates that actually apply and decide which endpoints to include. The plain date difference tool keeps weekends and holidays in the calendar span.

Can the result predict time around a daylight-saving change?

It counts dates. For an actual hour measurement, resolve the start and end clock readings in their time zone. The timed interval may be shorter or longer than the number of dates multiplied by 24.

A useful next step