Random24Random24
Random Date
Random Date

Date Range

Include Time

Randomize hours, minutes & seconds

Quick Presets

Press Space to generate

History

No dates yet

Generate a date to start tracking

Random Date GeneratorPick a Random Date in Any Custom Range Instantly

Our free random date generator lets you pick a random date within any custom date range you specify. Set a start date and an end date, toggle whether to include a random time, and generate instantly. The result is displayed in multiple formats — long form (Wednesday, March 15, 2023), ISO (2023-03-15), and optionally with time (14:32:07). A contextual indicator shows how many days ago or from now the date falls.

How to Use the Random Date Generator

  1. Set your from and to dates using the date input fields. The default range is 1 year ago to today.
  2. Use a quick preset — click Today, This Week, This Year, Last 100 Years, or Next 30 Days to fill the range automatically.
  3. Toggle Include Time to also randomize hours, minutes, and seconds within the generated date.
  4. Click Generate Date or press Space to pick a random date within your range.
  5. Copy the date in your preferred format using the copy buttons next to each format.
  6. View the history panel to see all previously generated dates in the session.

When to Use the Random Date Generator

  • Random birthday generation — pick a random birthday for fictional characters, game avatars, or test data.
  • Historical event simulation — generate random dates within a historical period for creative writing or games.
  • Testing and development — generate random date values for database testing, form validation, and QA.
  • Contest draw dates — pick a random announcement or draw date within a campaign window.
  • Calendar scheduling games — generate random meeting dates for fun or team building.
  • Time capsule dates — pick a random future date to revisit goals or memories.

Key Features

  • Flexible date range — set any From and To date within the full calendar range.
  • Quick presets — Today, This Week, This Year, Last 100 Years, and Next 30 Days one-click options.
  • Optional time randomization — toggle Include Time to add random hours, minutes, and seconds.
  • Multiple output formats — long form, ISO 8601, and optional time displayed simultaneously.
  • Days indicator — shows exactly how many days ago or from now the generated date falls.
  • Animated result — the date appears with a pop-in animation on each generation.
  • Copy individual formats — copy just the format you need with dedicated copy buttons.
  • History panel — tracks the last 20 generated dates with timestamps.

Frequently Asked Questions

How are random dates generated?

The generator converts the From and To dates to Unix timestamps (milliseconds since January 1, 1970), picks a random millisecond value between the two timestamps using Math.random(), then converts the result back to a date. When Include Time is on, the full millisecond precision is used. When off, the time component is zeroed out.

Can I generate a random year?

Yes. Use the Last 100 Years preset to set a range spanning a century, then generate a random date. The year, month, and day will all be randomized within that span.

What date formats are supported?

The tool outputs three formats: a long human-readable format (e.g., Wednesday, March 15, 2023), an ISO 8601 format (e.g., 2023-03-15), and optionally a 24-hour time string (e.g., 14:32:07). These cover the most common use cases for dates in documents and code.