1.0.2 • Published 2 years ago
date-age v1.0.2
date-age
converts date to age
//date to age
const {Age} = require("date-age")
const age = new Age()
console.log(age.dobToAge(new Date("2021-12-31")))
// approx date of birth
console.log(age.ageToDob(1, "Months"))