How to use faker.date.between faker.js

Hamza picture Hamza · Feb 6, 2016 · Viewed 12.7k times · Source

I want to generate some dates between two fixed values, but I don't know how to

use faker.date.between to achieve that.

the example in faker js demo is just giving a null value.

Answer

palaniraja picture palaniraja · Apr 22, 2016

Not sure when did they update wiki, but they do have a working sample for date.between now

faker.date.between('2015-01-01', '2015-01-05');