Random Date / Time

Generate random dates within any range — choose format, count, unique/sorted options, and separator. Pure browser tool.

Runs locally
Output

What is a random date generator?

A random date generator produces dates drawn uniformly from within a specified range. This is useful for testing date logic in applications, seeding databases with realistic-looking but fake data, generating mock calendars, or creating test fixtures where you need a variety of timestamps. This tool generates dates (and optionally times) in several common formats including ISO 8601, US and European date formats, Unix timestamps, and long-form English dates.

How to use this tool

  1. 1 Set the From and To date range using the date pickers.
  2. 2 Enter the count of dates to generate (1–500).
  3. 3 Choose a format (ISO, US, EU, long English, Unix timestamp, or ISO datetime).
  4. 4 Enable "Unique dates" to ensure no duplicates, and "Sort results" to order them chronologically.
  5. 5 Click Generate to produce the output. Copy the result with the copy button.

Frequently asked questions

Does the random generator use cryptographic randomness?

No — dates use Math.random(), which is sufficient for testing and mock data but not for security-sensitive use cases.

What date formats are available?

ISO 8601 (2024-06-15), US (06/15/2024), EU (15.06.2024), Long English (June 15, 2024), Unix timestamp (seconds since epoch), and ISO datetime with time component.

What happens if I enable "Unique dates" but the range is too small for the requested count?

The generator stops when it runs out of unique dates within the range. You will get fewer results than requested if the range has fewer possible dates than the count.

Is time included in the output?

Only if you check "Include time". The time component is also random when included.

Is my data sent to a server?

No. Date generation runs entirely in your browser with JavaScript. Nothing is transmitted.