Difference between dates
What this tool does
This tool calculates the number of days between two specific dates. It is useful for determining how much time has passed or how much time is left between two points in the calendar.
Common uses
- Calculating the duration of an employee's service or contract.
- Determining how many days are left until a project deadline.
- Checking the age of an account or subscription.
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. |