date-of-birth-generator
v1.2.0
Published
This is a package for generating random date of birth or date of birth with specific age
Downloads
5
Readme
Generate random date of birth or date of birth with specific age
To make use of this function, install our package - date-of-birth-generator inside your function with below command,
npm i date-of-birth-generator
Next step is to import function into your script with below command,
const newDate = require('date-of-birth-generator')
To get date with specific age, pass the age as number
const newDate = require('date-of-birth-generator')
let dob = newDate.randomDate(23)
To get some random date, you need not pass any parameter
const newDate = require('date-of-birth-generator')
let dob = newDate.randomDate()