could you please tell me how to calculate the age of person using moment js ? I have two dates "DOB" and "current date" .i want to get difference between them to get age .
Age like 15 year , 14 year ..
here is my code http://plnkr.co/edit/1wIvVISmgEqcRNnAD971?p=preview
let DOB= "09-Feb-1983"
console.log(moment(DOB, 'DD-MMM-YYYY', true).isValid())
console.log(moment().format('DD-MMM-YYYY'));