WhimWheel

Random Date Generator

Generate random dates between any two days — weekdays only if you like — in US, European, ISO or long format.

Random date generator

  • Saturday, July 21, 2007
  • Monday, August 11, 2014
  • Tuesday, January 16, 2018
  • Sunday, July 12, 2020
  • Monday, November 16, 2020

Random dates in any range, in any format

This random date generator picks calendar days uniformly between a start and end date that you choose — every day in the range has the same chance. Generate up to 100 dates at once, keep only weekdays (Monday to Friday), sort them chronologically, and output them in the format you need: Monday, March 4, 2024, 03/04/2024 (US), 04/03/2024 (European) or 2024-03-04 (ISO 8601, ideal for spreadsheets and code).

People use random dates to pick a surprise date-night day, schedule random spot-checks or audits, create test data for software, choose a random birthday for a fictional character, or quiz students on days of the week (“what day was 14 July 1789?”). Dates are calculated in UTC, so time zones and daylight saving never shift a result.

Generating dates in a range

  1. Set the From and To dates.
  2. Choose how many dates and an output format.
  3. Tick Weekdays only to skip weekends.
  4. Press Generate random dates and copy the results.

How a date gets picked

Under the hood, the generator counts the days in your range, picks a whole number between zero and that count with your browser’s cryptographic random generator, and adds that many days to your start date. Every calendar day in the range, including both ends, has exactly the same chance.

Turn on weekdays only and Saturdays and Sundays are simply thrown back and drawn again, so the remaining Monday-to-Friday dates stay equally likely. You can generate up to 100 dates at once, sort them, and choose from four formats.

All the arithmetic happens in Coordinated Universal Time. That sounds technical, but it matters: daylight-saving changes and your device’s time zone can’t nudge a result onto the wrong day, which is a classic bug in date code.

Picking the right format

FormatExampleBest for
LongMonday, March 4, 2024invitations, notes, anything people read
US03/04/2024American forms and spreadsheets set to US locale
European04/03/2024most of Europe, Latin America, Australia and elsewhere
ISO 86012024-03-04code, databases, file names and spreadsheets anywhere

That first row hides a trap. The same short date, 03/04/2024, means 4 March in the United States and 3 April in most other places. If dates will cross borders, or end up in a spreadsheet opened by someone else, use ISO 8601. It’s an international standard, it’s unambiguous, and it sorts correctly even as plain text because the biggest unit comes first.

Spreadsheet tip

Excel and Google Sheets both recognise ISO dates when you paste them in. Spreadsheets store dates as serial numbers behind the scenes. In Excel’s default system, day 1 is 1 January 1900, and Excel also treats 1900 as a leap year even though it wasn’t, a quirk kept deliberately for compatibility with Lotus 1-2-3. It only affects dates before March 1900, but it’s a fun fact to have up your sleeve.

Calendar facts that come up with random dates

Generate enough dates and you’ll start running into the odd corners of the calendar.

Leap years. A year is a leap year if it’s divisible by 4, except century years, which only count if they’re divisible by 400. So 2000 was a leap year, but 1900 wasn’t and 2100 won’t be. A random date in a range that includes February of a leap year can land on the 29th.

The 400-year cycle. The Gregorian calendar repeats exactly every 400 years. Those 400 years contain 146,097 days, which is precisely 20,871 weeks, so the pattern of weekdays lines up perfectly each cycle.

Friday the 13th is slightly more common than average. Across one 400-year cycle, the 13th of the month falls on a Friday 688 times, more than on any other day of the week. Other days get between 684 and 687. It’s a tiny difference, but it’s real.

Weekdays per year. A normal year has 260 or 261 weekdays. A leap year can have 260, 261 or 262. Roughly 71% of all dates are weekdays, which is why the weekdays-only filter barely slows generation.

Calendar reform. The Gregorian calendar was introduced in 1582, when 4 October was followed directly by 15 October in Catholic countries. Britain and its colonies switched in 1752, skipping from 2 September to 14 September. The generator uses the modern Gregorian calendar for all dates, extended backwards, so a random date from the 1600s may not match the date written in an English parish record of the time.

What day of the week was it?

One of the nicest classroom uses is a weekday quiz. Generate a historical date, and ask students to work out the weekday before revealing it.

DateWeekday
14 July 1789 (storming of the Bastille)Tuesday
20 July 1969 (Apollo 11 Moon landing)Sunday
1 January 2000Saturday

Mathematician John Conway devised a mental method called the Doomsday rule for exactly this. It relies on the fact that certain easy-to-remember dates, like 4/4, 6/6, 8/8, 10/10, 12/12 and the last day of February, always fall on the same weekday in any given year. Learn that year’s “doomsday” and you can count from the nearest anchor. With practice, people get answers in a few seconds. Generate twenty random dates as a practice set and check yourself against the generator’s labels.

Not every month is equally likely

Because every day has the same chance, longer months get picked slightly more often. Over a range of one ordinary year:

Month lengthMonthsChance of landing in a given one
31 daysJanuary, March, May, July, August, October, Decemberabout 8.5%
30 daysApril, June, September, Novemberabout 8.2%
28 daysFebruary (non-leap year)about 7.7%

The differences are small, but they show up if you generate thousands of dates. If you need each month equally represented, say for a survey that should cover every month evenly, generate dates one month at a time instead.

Seasons behave the same way. Summer in the Northern Hemisphere (June, July and August) contains 92 days, while winter (December, January and February) contains 90 in a normal year, so a random date is a hair more likely to fall in summer.

Everyday uses

Surprise plans

Couples and friends use random dates to schedule a surprise. Set the range to the next three months, generate one date, and that’s the day for a mystery outing. The date night ideas wheel can choose what you’ll do.

Spot checks and audits

Quality teams, safety officers and auditors use random dates for unannounced checks. Random scheduling means nobody can prepare for a specific day, which is the whole point. A few habits make it more robust:

  • Generate the full year’s dates at once and store them somewhere that the people being checked can’t see.
  • Use the weekdays-only option if inspections happen during working hours.
  • Keep a record of when the dates were generated, so the process is auditable later.

Habits and challenges

Some people use random dates to schedule “no-spend days,” digital detoxes or surprise workouts. Generate ten dates across the next two months and commit to them. Because you didn’t choose the days, there’s no picking the easiest ones.

Fiction and games

Writers need birthdays, anniversaries and historical dates. A random birthday makes a character feel like a real person, and the long format tells you the weekday they were born on, which can be a nice detail. Role-playing groups sometimes generate in-game dates for festivals, eclipses or deadlines.

Time capsules and letters to the future

A lovely, low-key use of the generator: write a letter to your future self and let chance decide when you’ll open it. Set the range from six months to five years ahead, generate one date, and put it in your calendar with a reminder. Because you didn’t pick it, the letter turns up as a surprise.

Classrooms do this too. At the start of the school year, each pupil writes a letter about their hopes and fears, the teacher generates a random date between the spring term and the last week of school, and the letters come back out on that day. The randomness adds suspense that a fixed “last day of term” doesn’t have.

Families sometimes use the same idea for a home time capsule. Fill a box with photos, a newspaper, a list of everyone’s favourite songs and a note about what the house was like this year. Generate a date five or ten years out and write it on the lid.

Journaling and memory prompts

Generate a random date from your own past, say any day in the last ten years, and try to remember what you were doing. Check photos, old messages or a calendar to see how close you got. It’s a surprisingly moving exercise. Most days leave no trace in memory at all, and the few that do tend to be the ones that mattered.

If you keep a diary, generate a random date and reread that entry. Reading a random day rather than a chosen one gives a more honest picture of what your life was actually like.

Random dates as test data

Developers use random dates to fill demo databases and test date handling. Random values are good for realistic variety, but the bugs often hide at specific edges, so combine generated dates with a list of awkward ones:

Edge caseWhy it breaks things
29 Februarynon-leap-year logic, birthday calculations
31 December and 1 Januaryyear boundaries, week numbering
Last day of each monthadding “one month” to 31 January
Days when clocks changelocal times that don’t exist or happen twice
1 January 1970the Unix epoch, often treated as “no date” by mistake
19 January 2038when signed 32-bit Unix timestamps run out
Dates before 1900some spreadsheet and database types don’t support them

The ISO format is the safest for test fixtures. It’s what most programming languages and databases parse without fuss.

Random dates in research and statistics

Random sampling by date is a common technique in research. A study of newspaper coverage might sample random issues across a decade. A study of hospital admissions might pull records from randomly chosen days. Random selection protects against accidental bias, like picking only quiet weeks or only Mondays.

If you’re sampling for research, a few cautions apply. Decide the range and the number of dates before you look at any data. Record the exact process. And consider whether you need stratified sampling, for example a fixed number of dates from each month, so that seasonal patterns don’t skew the result. For that, run the generator once per month with a smaller count.

Teaching with dates

Random dates work in maths, history and language lessons:

  • Counting days. Generate two dates and ask how many days lie between them. Check with a calculator afterwards.
  • History timelines. Generate dates within a century and ask students to find one event that happened near each.
  • Language practice. Read dates aloud in the target language. Ordinal numbers and month names get lots of practice. In French, for instance, “le 14 juillet” uses a cardinal number, which surprises English speakers.
  • Calendar maths. Ask how old someone born on a generated date would be today, in years, months and days.

Fair scheduling for shared duties

Rotas are a frequent source of grumbling. Someone always seems to get the bank-holiday weekend, the Friday before Christmas or the day of the big match. Random dates take the personal element out of it.

A simple method for a team or household:

  1. List the duty that needs covering, like on-call shifts, cleaning days or school pick-ups.
  2. Generate one date per person from the period you’re scheduling, with weekdays only if that suits the duty.
  3. Sort the results and assign them in alphabetical order of names, or use the random team generator to shuffle the people too.
  4. Allow swaps afterwards by mutual agreement. Randomness sets a fair starting point; people can trade from there.

Because the draw is visible and nobody chose their own date, it’s much harder to claim favouritism. Share the screen or a screenshot when you generate, so everyone sees the same result at the same time.

For recurring duties, a pure random draw can give one person two dates close together. If that matters, generate the dates first, sort them, and then hand them out in rotation so everyone’s turns are spread evenly through the period.

Dates and time zones, briefly

Because the generator works in Coordinated Universal Time and only deals in whole days, you never need to think about time zones while using it. They matter only when you take a date into a system that attaches a time. A date stored as midnight UTC will display as the previous evening for anyone west of Greenwich if their software converts it to local time. If a generated date seems to slip back a day after you paste it somewhere, that’s almost always the reason, and storing plain ISO dates without a time avoids it.

Choosing a sensible range

The range you choose shapes everything. A few guidelines:

  • Short ranges repeat more. In a range of 30 days, ten random dates are very likely to include a repeat. Widen the range or generate fewer.
  • Weekdays only shrinks the pool. A two-week range has only ten weekdays.
  • Inclusive ends. Both the start and the end dates can be chosen.
  • Backwards is fine. If you enter the end before the start, the generator swaps them for you.

For picking a random number instead of a date, use the random number generator. For a fictional person with a birthday, star sign and job already attached, try the random person generator.

Random date FAQ

Is every date in the range equally likely?

Yes. The generator counts the days in the range and picks one uniformly at random, including both the start and end dates.

Can I generate random weekdays only?

Yes. Tick “Weekdays only” and Saturdays and Sundays are skipped.

What date format should I use for Excel?

ISO format (YYYY-MM-DD) is recognised by Excel, Google Sheets and most programming languages regardless of locale.

Can the same date come up twice?

Yes. Each date in a batch is drawn independently, so repeats are possible, especially in a short range. If you need unique dates, pick a wider range or generate a few extra and remove duplicates. In a range of one year, ten dates have roughly a 12% chance of including at least one repeat.

Published · Last updated by the WhimWheel team.

Browse all random generators

Featured on