mysmx-getage

1.0.2 • Public • Published

Project Name

Get a person's age by birthday

Installation

Usage

Quickstart:

<script src="mysmx-getage.js"></script> <script> let birthdateParts = '10-31-1980'.split('-'), birthdate = new Date(Date.UTC(birthdateParts[2], birthdateParts[0] - 1, birthdateParts[1], 0, 0, 0)); console.log('age:'+getAge(birthdate)); </script>

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i mysmx-getage

      Weekly Downloads

      0

      Version

      1.0.2

      License

      ISC

      Unpacked Size

      1.19 kB

      Total Files

      3

      Last publish

      Collaborators

      • mysmx