0
I’m trying to catch the minute difference between two Javascript dates
Javascript:
function compare() {
var currentDate = new Date().format("DD/MM/YYYY HH:mm");
var timeStamp = currentDate.getTime();
var oldDate = new Date().format("DD/MM/YYYY HH:mm");
var timeStamp2 = oldDate.getTime();
var dif = timeStamp - timeStamp2 ;
}
what I would have to change for my function to work properly ?
Related: https://answall.com/q/398391/112052
– hkotsubo