1.1.1 • Published 4 years ago

random-moment v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Random Moment

Random Moment returns a random Moment (date + time) between two other Moments.

How to Use

npm install random-moment
import moment from "moment";
import randomMoment from "random-moment";

const startDate = moment("20-06-1995 ", "DD-MM-YYYY");
const endDate = moment().subtract(30, "days");

const randomDate = randomMoment(startDate, endDate);
1.1.1

4 years ago

1.1.0

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

5 years ago