🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

date-age

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-age

transform age to dob and vice versa

1.0.2
latest
Source
npm
Version published
Weekly downloads
10
25%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

age

FAQs

Package last updated on 08 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts