Skip to content
ToolZone

Random Date Generator

Generate one or more random dates within a specified range, useful for generating test data or randomly picking a date for an event.

Runs in your browser. Nothing you enter or upload leaves your device.

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

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. 1

    Set the Start date and End date.

  2. 2

    Choose how many dates and the output format.

  3. 3

    Tick Weekdays only or Sort if you need them. These settings are kept in the page link.

  4. 4

    Click Generate, then copy one date, copy all, or download.

Worked examples

Default range

Generating a date with the default settings.

Input
Start = 2000-01-01, End = 2025-12-31
Result
A date such as Tuesday, March 14, 2017

Picking a day in a month

Choosing a random day in June 2026 for a team event.

Input
Start = 2026-06-01, End = 2026-07-01
Result
A date such as Thursday, June 18, 2026

Setting the end to the day after the last wanted day gives June 30 the same chance as the other days.

Limitations
Dates may repeat when you generate more dates than the range contains. Times of day aren't generated; Unix time is midnight UTC. Weekend days are Saturday and Sunday; public holidays aren't excluded.
Assumptions
Each moment in the range is equally likely. Dates are displayed in US English format.
Privacy
Dates are generated in your browser and nothing is stored or sent.

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.

Related tools