moment convert timestamp to human readable code example
Example 1: moment check valid date
var date = moment("2016-10-19");
var check = date.isValid();
console.log(check);
Example 2: moment js subtract years
let min_date = moment().subtract(18, 'years');