A simple NPM package for getting the age by selected birthdate.
npm install age-by-birthdate

npm i age-by-birthdate --save
const getAge = require('age-by-birthdate')
console.log(getAge('8/17/1981'))
// 38
`
Formats
| Available formats | Sample |
|--|--|
| ISO Date Format | getAge('1981-08-17') |
| Short Date Format | getAge('08/17/1981') |
| Long Date Format | getAge('Aug 17 1981') |
| Full Date Format | getAge('August 17, 1981') |
$3
Feel free to clone or fork this project: https://github.com/deanilvincent/age-by-birthdate.git`