Skip to main content

Random Date Generator

Generate a random date within a range.

Reviewed for accuracy by the Math Ora X team Last updated

Result

About the Random Date Generator

Generates a random calendar date between two dates you specify, useful for testing, games or sampling.

How to use

Enter a start and end date, then click Generate.

Worked example

Between 2000-01-01 and 2025-12-31 might return 2014-08-17.

How to use this calculator

  1. Enter the start date for the range.
  2. Enter the end date for the range.
  3. Generate the result to get one random date within that range.
  4. If needed, generate again to get a different date.

The formula explained

$$ \text{Random date} = \text{Start date} + \text{random fraction} \times (\text{End date} - \text{Start date}) $$

  • \(\text{Start date}\) = the first date in the allowed range
  • \(\text{End date}\) = the last date in the allowed range
  • \(\text{random fraction}\) = a random number between 0 and 1
  • \(\text{Random date}\) = the selected date within the range

Step by step method

  1. Choose the start and end dates that define the range.
  2. Convert the date range into the total number of days covered.
  3. Pick a random position within that span.
  4. Translate that position back into a calendar date.

Worked example

For example, suppose you want one random date between March 1, 2025 and March 10, 2025.

  1. The range from March 1 to March 10, 2025 covers 10 dates if both endpoints are included.
  2. A random position of 7 would point to the 7th date in that list.
  3. Counting forward gives March 7, 2025.

Answer. March 7, 2025

Tips and common mistakes

  • Make sure the start date is not later than the end date.
  • Check whether the tool includes both endpoints in the range.
  • Use consistent date formats so the range is interpreted correctly.
  • If you need multiple dates, generate the tool more than once rather than assuming one result repeats.

Frequently asked questions

What format are dates?+

Use ISO dates such as 2025-12-31.

Is the range inclusive?+

Yes, both endpoints can be selected.

Facebook Twitter WhatsApp