diff between 2 dates in javascript in seconds code example
Example 1: javascript get seconds between two dates
var secondBetweenTwoDate = Math.abs((new Date().getTime() - oldDate.getTime()) / 1000);
Example 2: calculate time difference between two dates in javascript
Gettings diffrence between daytes