Math & Calculations January 23, 2024

How Date Difference Is Calculated

Learn how to calculate the exact difference between any two dates.

Share:

Steps

To calculate date difference:

  1. Convert both dates to day numbers from a reference point
  2. Subtract the earlier from the later
  3. Convert the result back to years, months, days

Example

From: 1 January 2020
To: 20 January 2024

Total days: 1,480 days
In years, months, days: 4 years, 0 months, 19 days