Generates a random Date in the range ['minYear', 'maxYear']. This method generate dates without time (or time set to 00:00:00)
(optional) minimum range value
max range value
a random Date value.
Generates a random Date and time in the range ['minYear', 'maxYear']. This method generate dates without time (or time set to 00:00:00)
(optional) minimum range value
max range value
a random Date and time value.
Updates (drifts) a Date value within specified range defined
a Date value to drift.
(optional) a range in milliseconds. Default: 10 days
Generated using TypeDoc
Random generator for Date time values.
Example
let value1 = RandomDateTime.nextDate(new Date(2010,0,1)); // Possible result: 2008-01-03 let value2 = RandomDateTime.nextDateTime(new Date(2017,0.1));// Possible result: 2007-03-11 11:20:32 let value3 = RandomDateTime.updateDateTime(new Date(2010,1,2));// Possible result: 2010-02-05 11:33:23