USTalika

Calculators

Date difference calculator

Count the calendar span between two dates as years, months, and days, plus the total number of days. The day count uses UTC dates so a time zone does not shift the result.

Result

How to use

  1. Pick the start date and the end date.
  2. Read the calendar span (years, months, days) and the total day count. They answer different questions.
  3. Swap the dates if you entered the later day first. The calculator orders them.

Formula / how it's calculated

Whole years and months are counted on the calendar, then the leftover days. Total days are the UTC midnight-to-midnight difference.

Worked example

From 1 January 2026 through 1 March 2026 is 2 months and 0 days. The total day count is 59 because 2026 is not a leap year.

Two dates can be compared as a calendar span or as a count of days, and the answers differ. From 1 January to 1 March is two calendar months. In 2026, which is not a leap year, it is also 59 days. In a leap year the same calendar span contains 60 days because February 29 exists. This calculator shows both readings.

The calendar span counts whole years, then whole months, then the leftover days, the way a person’s age is usually stated. The day count is the number of midnights crossed, computed in UTC so that a browser in one time zone and a browser in another agree on the date you picked. The time of day is ignored. Both fields are dates, not timestamps.

If the end date is earlier than the start date, the calculator swaps them and still reports a positive span. Check which date you meant before you copy the result into a contract. A negative span would be easy to drop the sign from.

Months are uneven. From 31 January to 28 February is not “one month” in the same sense as from 1 January to 1 February, because the calendar does not have a February 31 to land on. The leftover-days method is what this page uses, and it is the ordinary civil reading. It is not a banker’s 30/360 day count, and it is not a business-day count. Weekends and federal holidays are included in the day total.

Use the calendar span for age, length of a lease described in years and months, or how long a license has been held. Use the day count for a per-day rate: a rental, a delay, or a per-diem. Multiply the day count by the daily rate yourself. The calculator does not know the rate.

The 2027 calendar and the federal and state holiday pages on USTalika are the place to see which of those days are holidays. This tool will not remove them from the count, because a holiday is still a calendar day.

FAQ

Does it use a time of day?

No. It compares the two calendar dates you enter.