Date Generator Documentation
Version: 2.0.4
Retrieved:Â 2025-10-09 15:15:50
Date Generator
This module appends or write over a property with a randomly generated date and time between two user set date time.
This module is designed to be located at the beginning of a flow.
Settings
| Name | Requirements | Purpose | Default |
|---|---|---|---|
| Target Property | String with length 1-64 | The property for which date time will be written | Date |
| Start Date | Pick a date | The lower limit for the generation of date time | Date time now |
| End Date | Pick a date | The upper limit for the generation of date time | Date time now + 1 min |
| Resolution | milliseconds, seconds, minutes, hours, days | This sets the resolution for which the generator will use to randomize dates | seconds |
Note: Start date most be a earlier date time than End Date. The values doesn't need to be a complete date time expression, e.g. '2018-03-08' is also a valid date time.
Input
Any incoming message is accepted.
Output
If the property set in Target Property exists in incoming message it will be overwritten with the generated date time. Otherwise the output will be the incoming with the generated date time in the property that is set in Target Property. A randomly generated time will be added to Start Date with the resolution defined in Resolution.
Note: If Start Date is of another resolution than Resolution the value set in Target Property will have the lowest resolution of the two, e.g. if Start Date contains seconds and Resolution is set to minutes the value set in Target Property will contain the same seconds as Start Date.
Examples
Here is a demonstration of three arriving message's.
Settings
Target Property = Date, Start Date=2018-01-25 10:00.000, End Date=2018-01-26 08:00.000 and Resolution=seconds
Input
There is three empty message that comes in during this demonstration:
- First message:Â { }
- Second message:Â { }
- Third message:Â { }
Output
The following output was generated:
- First message:Â { "Date": "2018-01-25T18:21:36.0000000" }
- Second message:Â { "Date": "2018-01-25T19:14:24.0000000" }
- Third message: { "Date": "2018-01-26T03:49:12.0000000" }
Search Documentation
Other Modules