SUBTRACT 2 MOMENT times moment js code example
Example 1: moment js subtract years
let min_date = moment().subtract(18, 'years');
Example 2: how 2 subtract 2 dates using moment.js
var date1 = moment('2016-10-08 10:29:23');
var date2 = moment('2016-10-08 11:06:55');
var diff = date2.diff(date1);