Datetime

Below is a list of available datetime mock data generators.

Date

Generates a random datetime object between two specified date objects, from year until days.

Parameters

  • Start date: The start date for the generation range (Format: %d/%m/%Y).

  • End date: The end date for the generation range (Format: %d/%m/%Y).

  • Consistent mapping: Date supports consistent mapping.

Example

If you configure:

03/11/2024 to 05/11/2024

The results will be:

2024-11-04,
2024-11-03,
2024-11-03,
...

Date of birth

Generates a date of birth which is a datetime object.

Parameters

Example

If you configure:

The results will be:

Date/Time

Generates a random datetime object between two specified datetime objects, from year until seconds.

Parameters

  • Start date: The start date for the generation range. (Format: %d/%m/%Y %H:%M:%S)

  • End date: The end date for the generation range.

  • Consistent mapping: Date/Time supports consistent mapping.

Example

If you configure:

The results will be:

Date/Time series

Generates a series of datetime values at regular intervals based on a specified time unit and step size.

Parameters

  • Start date: The starting date or datetime for the series.

  • Time unit: The unit of time for the step increment ("day", "week", "month", "year").

  • Number: The number of units to step forward per iteration.

Example

If you configure:

The results will be:

Future date

Generates a future datetime object, always after the current day.

Parameters

Example

If you configure:

The results will be:

Was this helpful?