date-age
v1.0.2
Published
transform age to dob and vice versa
Downloads
95
Readme
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"))