Numbers

Random Date Generator

Pick a random date between two dates of your choosing, shown as a clean calendar-style card — handy for scheduling picks, testing, and random audit dates.

Cryptographically secure Instant, in your browser Free, no sign-up

Generate

Your result will appear here

How the Random Date Generator works

Every whole day between your two chosen dates — inclusive of both endpoints — has an exactly equal chance of being selected. Internally, both dates are converted to a day count since the Unix epoch, a fair integer is drawn between those two day counts using the same rejection-sampling approach as Xrandom's number tools, and the result is converted back into a calendar date, including its correct day of the week.

This is useful anywhere you need an unpredictable but bounded date: picking a surprise date within a season, choosing a random day for a compliance spot-check, or generating realistic random dates for test data and demos.

How to use it

1
Set your date rangeEnter a start and end date in YYYY-MM-DD format.
2
GenerateXrandom picks a random day (inclusive of both endpoints) and displays it as a calendar card with weekday.
3
Use the resultGreat for randomly scheduling a review date, picking an audit sample date, or generating test data.

Frequently asked questions

What date format should I use?

Enter dates as YYYY-MM-DD, for example 2026-03-15 for March 15, 2026.

Can the range span multiple years?

Yes, there's no limit on how far apart the two dates can be.

Does it account for leap years correctly?

Yes, the calculation is based on real calendar day counts, so leap years are handled automatically and correctly.