date-age
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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"))

Readme

Keywords

Package Sidebar

Install

npm i date-age

Weekly Downloads

10

Version

1.0.2

License

ISC

Unpacked Size

7.45 kB

Total Files

11

Last publish

Collaborators

  • umeshbilagi