Skip to content

MRhyne1931/get-age

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-age

Build Status Code Climate Version Downloads

get-age calculates the age in years for a given birth date

Install

$ npm install --save get-age

Usage

var getAge = require('get-age')

getAge('1990-01-09')
// => 25

API

getAge(dateString) -> number

dateString

Required
Type: date

The birth date that you'd like to get the age of in iso format YYYY-MM-DD

About

Calculate the age in years for a birth date

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%