Generate valid random dates.

Random Date Generator

Generate random dates within an inclusive range for planning and testing. Handle leap years, unique dates, sorting, and ISO output.

  • No sign-up
  • Runs in your browser
  • Cryptographic randomness

Your results

Your results will appear here.

Your inputs and results never leave this device.

Generate valid calendar dates inside an inclusive start-and-end range. The tool selects a day offset and performs UTC date-only arithmetic, so month lengths and leap years are handled without invalid combinations.

Choose unique dates for schedules and test data, sort them chronologically, and copy the ISO results. No local-midnight conversion is used, avoiding accidental shifts into the previous or next day.

How to generate random dates

  1. 01

    Set the range

    Enter valid start and end dates. Both endpoints are included.

  2. 02

    Choose count and order

    Select the number of dates, optional uniqueness, and chronological sorting.

  3. 03

    Generate and copy

    Review localized display dates and copy the ISO values for tests or plans.

Advertisement
Ad placement preview

Ways to use random dates

Software testing

Create sample transactions, boundary cases, and reproducible date-only test data.

Planning exercises

Generate fictional milestones, practice schedules, and simulation events.

Games and prompts

Pick a day for a challenge, historical research prompt, or storytelling exercise.

Frequently asked questions

Are the start and end dates included?

Yes. Both endpoints can appear. The number of possible unique dates is the number of calendar days between them plus one.

Does it handle leap years?

Yes. UTC calendar arithmetic handles month lengths and 29 February automatically.

Does it generate times?

No. It generates date-only values, avoiding daylight-saving and local-midnight ambiguities.

Can I copy ISO dates?

Yes. The main copy action exports one YYYY-MM-DD value per line, while the display also shows a localized date.