npm.io
0.0.2 • Published 3 years ago

get-current-age

Licence
MIT
Version
0.0.2
Deps
0
Size
1 kB
Vulns
0
Weekly
0

get-current-age

This package returns the current age depending on the birthdate you input.

Installation

Install the package:

npm install get-current-date

Usage

Include the package in your JavaScript:

const age = require("get-current-date");

Get age:

const day = 30,
      month = 9,
      year = 2007;
       
const myAge = age(day, month, year);

console.log("I am " + myAge + " years old");

Keywords