Random Date Generator

Generate random dates within any range and format.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

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.

FormatExample
ISO date2025-03-14
ISO date-time (UTC)2025-03-14T08:21:00Z
US03/14/2025
EU14/03/2025
LongMarch 14 2025
Unix timestamp1741939260

Everything runs locally in your browser — your data never leaves the page.

Ad placeholder (rectangle)