Skip to content

bukinoshita/rnd-date

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rnd-date

Get a random date

Codeship Status for bukinoshita/rnd-date Build Status GitHub release license

Install

$ npm install --save rnd-date

Usage

import rndDate from 'rnd-date'

rndDate(2010, 2016)
// => 2015-04-18T07:29:04.989Z

rndDate(2010, new Date())
// => 2012-06-29T07:51:26.924Z

API

rnd-date(from, to)

from

Type: Number
Required

to

Type: Number
Default: new Date()
Optional

Related

  • rnd-age — Generate a random age

License

MIT © Bu Kinoshita