hi could you please tell me how to find difference of dates using moments js? here is my code
https://jsfiddle.net/FLhpq/6082/
secondDate "2019-12-01" // formate YYYY-MM-DD;
var day = moment().format('YYYY-MM-DD');
// difference of secondDate - date
alert('day'+secondDate - day)
Can we calculate the difference of years between two dates
expected output
3