How to use the random date generator
- Choose the From and To dates. To defaults to today.
- Pick a Format:
2026-10-02(ISO),02/10/2026(day first),10/02/2026(month first),2 Oct 2026, ISO 8601 with time (UTC) or Unix timestamp. - Tick Include a time to add hours, minutes and seconds, and Sort oldest first if you want them in order.
- Set How many dates (up to 1,000) and press Generate.
What it does and when to use it
Testers, analysts and teachers often need dates that look real but mean nothing: order dates for a sample sales sheet, sign-up dates for test users, timestamps for fake log lines, due dates for a practice exercise, or dates of birth for a form test. Picking them by hand leads to patterns, such as too many on the 1st or the 15th. Random dates avoid that.
The format menu matters more than it looks. 02/10/2026 is 2 October in most of the world but 10 February in the United States, so choose the order your target system expects, or use ISO, which is never ambiguous. For dates inside complete test records, use the bulk fake data generator. To turn a Unix timestamp back into a readable date, use the Unix timestamp converter. For random whole numbers instead, try the random number generator.
How it works
The tool turns From into midnight UTC and To into 23:59:59.999 UTC, then draws a random fraction between 0 and 1 with crypto.getRandomValues and places a moment that far along the range. Without a time, the moment is cut back to midnight of its day. With ISO 8601 with time the time is always kept. Sort oldest first only reorders the list; it does not change which dates were drawn.
Worked examples
- A single day, long format. From and To both 2026-02-14, format
2 Oct 2026style: every result is14 Feb 2026. - The same day as a Unix timestamp. Every result is
1771027200, midnight UTC on 14 February 2026. - Dates the wrong way round. From 2025-01-01 and To 2024-01-01 gives “The end date must be on or after the start date.”
- A year of order dates. From 2024-01-01 to 2024-12-31 gave
2024-11-26,2024-01-26and2024-08-10in one run; tick Sort oldest first to list them in order.
Limits and tips
- Repeats are allowed. Ask for 1,000 dates within one month and many days will appear several times.
- Unix timestamps are in seconds, not milliseconds. Multiply by 1,000 for JavaScript’s
Date. - Day-first and month-first dates look identical for days 1 to 12. Label your columns.
Frequently asked questions
Is the end date included?
Why does it say UTC?
How do I make realistic dates of birth for adults?
Are all days equally likely?
What does the Unix timestamp option give?
How do we know nothing is uploaded? Test it yourself on the privacy proof page.