The DateTime data generator is a versatile data generator that has multiple date-time options and several format choices.
The Date-time option property controls what date-time will be returned by the data generator.
Select the Random value to return a date-time between the Min and Max value properties. For example, a date-time between 1/1/2020 and 1/1/2030
The following values return the current date-time
- Select the Current local date-time value to return the current date-time in the local timezone.
- Select the Current UTC date-time value to return the current date-time in the UTC (GMT) timezone.
To return a date-time in the future (or the past), set the Time offset (s) property to the number of seconds in the future (negative seconds in the past).
The generated date-time is formatted before it is returned. The Date-time format property controls the formatting options.
Select the Formatted value to format the returned date-time according to the Format string property.
Select the following values to format the returned date-time in Unix (Epoch) time.
- Select the Unix time in milliseconds value to return the number of milliseconds between the returned date-time and January 1, 1970.
- Select the Unix time in seconds value to return the number of seconds between the returned date-time and January 1, 1970.
- No labels