Need sample dates for test fixtures, a spreadsheet, or random sampling? This random date generator picks dates uniformly within any range you set and outputs them in the format you need — ISO, US, EU, long, date-time, or Unix timestamp — ready to copy into code, test data, or analysis.
How it works
You set an earliest and a latest date. The tool converts both to millisecond timestamps, then for each result it draws a uniformly random value between those two timestamps (inclusive) using the browser’s crypto.getRandomValues secure random source. That random millisecond value is turned back into a Date and rendered in your chosen format. Because the draw is uniform across the whole span, every day in the range is equally likely, and dates are independent (so duplicates can occur, like real sampling with replacement).
Example
Set the range 2020-01-01 to 2024-12-31, count 3, format ISO date. A generated batch might be:
2022-07-19
2020-11-03
2024-02-28
Switch the format to Unix timestamp and the same kind of result appears as integers like 1658188800.
| Format | Example |
|---|---|
| ISO date | 2025-03-14 |
| ISO date-time (UTC) | 2025-03-14T08:21:00Z |
| US | 03/14/2025 |
| EU | 14/03/2025 |
| Long | March 14 2025 |
| Unix timestamp | 1741939260 |
Everything runs locally in your browser — your data never leaves the page.