In the following example I am going to calculate the differences between two dates. First, you'll need to convert the date value into its corresponding value in milliseconds and then do the math calculation so we can get the difference in days, hours, minutes, etc.

For example to get the difference in day you'll need to divide the difference in milliseconds with (24 * 60 * 60 * 1000).

Here is the result:

For example to get the difference in day you'll need to divide the difference in milliseconds with (24 * 60 * 60 * 1000).

Here is the result:

In milliseconds: 10713600000 milliseconds. In seconds: 10713600 seconds. In minutes: 178560 minutes. In hours: 2976 hours. In days: 124 days.