I have to compare if 15 seconds has passed between the first and the second date which I get from JSON in format: 2019-01-31T10:45:10.000Z
I try to make something as:
var a = moment(first.date);
var b = moment(second.date);
console.log(a.diff(b, 'seconds'));
But it doesn't work correctly at all. Any suggestions ?