Get Personal $1.00 / 1,000 calls

Difference between dates

What this tool does

This tool calculates the time gap between two specific moments in time. It is designed to help you determine exactly how much time has passed or is remaining between two dates or timestamps.

When to use it

  • Calculating the number of days between a project start date and an end date.
  • Finding out how many hours have elapsed since a specific event occurred.
  • Determining the minute difference between two scheduled appointments.
  • Measuring the exact seconds between two recorded events.

What to expect

The tool will return a simple number representing the difference in the unit of time you selected.

Limitations

  • The tool only works with dates that follow standard calendar formats.
  • It calculates the absolute difference, so the order of dates does not change the result.
  • It does not account for complex calendar adjustments like daylight saving time shifts unless the underlying system handles them.

When it fails

  • One or both of the provided date values are missing.
  • The provided text for a date cannot be recognized as a valid date or time.
  • The chosen time unit is not supported by the system.

Good to know

  • Ensure both dates are entered in a format the system can easily read, such as year-month-day followed by hours, minutes, and seconds.
  • The result is always a non-negative number, representing the magnitude of time between the two points.

Input data

Parameter Required Example Description
date1 Yes 2018-10-10 00:00:00 Enter the first date in any standard format (e.g., 2018-10-10 00:00:00). This field is required.
date2 Yes 2018-10-11 00:00:00 Enter the second date in any standard format (e.g., 2018-10-11 00:00:00). This field is required.
period Yes seconds Select the unit of time for the result. Options are 'days', 'hours', 'minutes', or 'seconds'. The example 'seconds' shows the expected input style.

Output data

Field Description
result Returns the time difference as a number. For example, if you enter two dates that are one day apart and choose 'days', the result will be 1.