rnd-date

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i rnd-date

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

126 kB

Total Files

7

Last publish

Collaborators

  • bukinoshita