Random Date Generator

Pick a random calendar date within a chosen range. Create sample dates for forms, test data, and classroom exercises.

Processed locally in your browser. Maximum input: 1 MB.

Generators

Pick a random calendar date within a chosen range. Create sample dates for forms, test data, and classroom exercises.

How to use

Set the start and end dates and select Generate result. Both bounds are included. The result is a UTC calendar date rather than a local time.

Example

A range from 2026-01-01 to 2026-01-03 can return January 1, 2, or 3.

FAQ

Are weekends excluded?

No. Every date in the range is eligible. Apply your own rules if a test needs only working days or holidays.

Related tools

A practical task

For test records, decide if all calendar days are allowed. A date in a leap year or on a weekend can be a useful edge case for a form. Do not silently discard inconvenient results when the test is intended to cover the full range.

Another useful question

Can start and end be the same day?

Yes. An inclusive range containing one date has only that result. This is useful for checking the form without uncertainty about the expected date.

Settings and formats

Field Values
Start date Starting value: 2026-01-01
End date Starting value: 2026-12-31

Details for interpreting the result

Detail Explanation
Calendar dates and timezones A calendar date has no clock time on its own. Timezone conversion can move an instant to a different local day. Decide if the task needs a date label or a moment in time before changing formats.
UTC timestamps UTC is a shared time reference. An ISO timestamp ending in Z uses UTC; a numeric offset states a difference from it. A local clock reading without an offset is ambiguous when exchanging timestamps.
Inclusive bounds An inclusive range permits both its minimum and maximum. Count whole number choices as maximum minus minimum plus one. This matters when mapping numeric results to positions in a list or calendar days.
Independent samples Independent draws do not remember previous outcomes. A repeat does not indicate a failure, and a run of one outcome does not force the opposite outcome next. Evaluate the sampling rule rather than the appearance of a short list.
Equal chances Uniform sampling gives each eligible entry the same chance in a single draw. Equal chance does not mean equal counts in a short run. The definition of an entry matters when a list contains duplicates.
Single draw probability With n equally likely eligible outcomes, the probability of one named outcome is 1 divided by n. A result observed once does not tell you the probabilities; those come from the defined sampling process.
Short and long series Random variation is especially visible in short series. A sample can look unbalanced without contradicting the model. Choose the experiment length before reviewing outcomes so the stopping rule does not depend on an attractive result.