Random Date
Generator
Generate random dates within any range
How it works
A random date generator picks a single calendar date from within a range you define. Developers use it to create test data with realistic birthdays, order dates, or expiry timestamps. Teachers and quiz makers use it for history games and timeline challenges. Anyone planning a surprise event, a randomised daily challenge, or a fair way to settle a tie can let the tool choose the date instead of arguing over the calendar.
When you click Generate, Clockr counts the number of days between your From and To dates (inclusive), picks a random whole number in that range, and adds it to the start date. Every day in the range has an equal chance of being selected — a uniform distribution across the full span. The result is not weighted toward recent years or popular months; a date in 2003 is as likely as one in 2024 when both fall inside your chosen boundaries.
You can set any range from year 1 to year 9999 using the date inputs. Very wide ranges — for example, the entire Common Era — are supported, but because most of that span lies in the distant past, the majority of results will naturally fall in earlier centuries simply because there are more days there. Narrow the range when you need dates from a specific era, decade, or project window.
Frequently asked questions
How does the random date generator work?
Set a start date (From) and end date (To), then click Generate. Clockr calculates how many days lie between them, selects a random offset, and returns the matching calendar date. The result includes the full date with weekday, the ISO week number, and how many days ago or from now that date falls relative to today.
Can I generate a random date from a specific range?
Yes. Change the From and To fields to any valid dates — for example, 1 January 1990 to 31 December 1999 for a random date in the 1990s, or last Monday to next Friday for a short window. The generator only returns dates that fall on or between your chosen boundaries, inclusive of both endpoints.
Is the random date generator truly random?
Clockr uses your browser's built-in pseudorandom number generator (Math.random) to pick the day offset. Each day in the range has an equal probability. This is suitable for games, testing, and casual decision-making. For cryptographic or high-stakes applications that require unpredictable entropy, use a dedicated cryptographic random source instead.
What can I use a random date generator for?
Common uses include generating sample dates for software testing, picking a random historical date for a quiz, choosing a surprise anniversary or meet-up day, creating writing prompts tied to a specific era, and settling friendly bets or raffles where a fair random date is needed. Teachers, developers, and event planners all use it for quick, unbiased date selection.
Can I generate multiple random dates at once?
This tool generates one random date per click. To get several dates, click Generate repeatedly — each result is independent of the last. The same date can appear more than once across multiple clicks, just as a dice roll can repeat. If you need a list of unique dates without duplicates, generate several times and discard any repeats manually.
How do I find out what day of the week a random date falls on?
The result shows the weekday twice: in the main date line (for example, "Tuesday, 14 March 2017") and as a separate "Day of the week" field below. You can also use Clockr's Day of the Week Calculator to look up any specific date in more detail, including a weekday distribution chart for birthdays.