About the Random Date Generator
Sometimes you need a date nobody chose on purpose: a sample birthday for test data, a random deadline for a writing prompt, or a fair way to pick a day for an event. This random date generator picks a date between a start and end date you set.
How it works
The generator counts the days in the range, including both the start and end date, and picks one at random using the browser's Web Crypto API, so every day has exactly the same chance of being picked. With Weekdays only, Saturdays and Sundays are removed before picking.
If the start date is after the end date, the tool asks you to fix the order.
How to use
- 1
Set the Start date and End date.
- 2
Choose how many dates and the output format.
- 3
Tick Weekdays only or Sort if you need them. These settings are kept in the page link.
- 4
Click Generate, then copy one date, copy all, or download.
Worked examples
Default range
Generating a date with the default settings.
Picking a day in a month
Choosing a random day in June 2026 for a team event.
Setting the end to the day after the last wanted day gives June 30 the same chance as the other days.
Frequently asked questions
Can I generate random dates that fall only on weekdays?+
Yes. Tick Weekdays only and Saturdays and Sundays are skipped.
Is this useful for generating test data?+
Yes. It is often used for sample dates of birth, order dates or other date fields. Copy each result into your test data.
Can the end date itself be picked?+
Yes. Both the start and end dates are included, and every day in the range is equally likely.
Why do I see an error instead of a date?+
The start date is after the end date, one of the dates is missing, or Weekdays only is ticked for a range with only weekend days.
Can I generate many dates at once?+
Not in one click. Press Generate repeatedly and copy each date.