Answers for "javascript get seconds between two dates"

2

javascript get seconds between two dates

var secondBetweenTwoDate = Math.abs((new Date().getTime() - oldDate.getTime()) / 1000);
Posted by: Guest on January-30-2020
0

js date difference in seconds

var t1 = new Date();
var t2 = new Date();
var dif = t1.getTime() - t2.getTime();
Posted by: Guest on June-28-2019

Code answers related to "javascript get seconds between two dates"

Code answers related to "Javascript"

Browse Popular Code Answers by Language