Maaz Zindani

Loading the index…

↑↓ move↵ openesc close3993 pages

Free tool · Generators

Random date generator

Choose a start and an end date and get random dates from that range at once: one or many, weekdays only, no repeats, sorted and in the format you need.

  • Free
  • No sign-up
  • Runs in your browser

By Maaz Zindani · Updated

Both dates are included in the draw.
From 1 to 1,000 in one go.
Options
Weekdays only skips Saturdays and Sundays. It does not skip public holidays, because the tool has no holiday calendar.
Order
List with

Dates are worked out in your browser with whole-day arithmetic and the cryptographic random generator (crypto.getRandomValues), so there are no time zones in the way. Nothing you enter is stored or sent anywhere.

Your random date

2012-12-20a date from 2000-01-01 to 2029-12-31

  • Never leaves this device
Day of week
Thursday
Days in range
10,958
Dates to pick from
10,958

How to use the Random Date Generator

  1. Set the From date and the To date. Both days are included in the draw.
  2. Enter How many dates you want, and tick Weekdays only or No repeats under Options if you need them.
  3. Choose an Order, a Date format and how to List with the dates.
  4. Press Draw again for a new draw and Copy to take the result.

How do I generate a random date between two dates?

Enter the two dates and the tool picks uniformly from every day between them, both ends included. Inside, each date is a whole day number counted from 1 January 1970. The tool counts the days in the range, for example 10,958 days from 1 January 2000 to 31 December 2029, draws one random number from 0 up to that count, and turns it back into a year, month and day. Every day has the same chance, and a leap day such as 29 February 2024 is just one more day in the line.

This is not the same as picking a random month and then a random day in it. That shortcut makes days in short months likelier: 1 February would come up with chance 1/12 x 1/28 while 1 January would get 1/12 x 1/31, about 10% less. Picking a day number avoids the bias. There are no time zones involved, because only calendar days are drawn and the arithmetic is done in whole days, so the result is the same wherever you are. The calendar is the Gregorian one, used throughout for years 1 to 9999.

Can I exclude weekends?

Yes, tick Weekdays only. The tool then draws among Monday to Friday only. It counts the weekdays in your range exactly (261 in 2026, five in any full week), picks one of them at random, and finds its date. A range that starts on a Saturday and ends on a Sunday has no weekday, and the tool says so instead of giving an answer. Every weekday in the range is equally likely, so Mondays and Fridays at the edges of your range are not favoured or left out.

There is one honest limit: Weekdays only does not skip public holidays. Holidays differ by country, region and year, and the tool carries no holiday calendar. If you need working days with your own holidays removed, use the business days calculator to count them, then draw from the number of days it gives you with the random number generator.

Can I get multiple unique dates?

Yes. Set How many dates up to 1,000 and tick No repeats, and every date appears at most once. The tool draws like taking numbered tickets from a hat without putting them back, so every possible set is equally likely. If you ask for more dates than the range holds, for example 6 dates from a 5-day range, the message tells you how many dates fit.

Leave No repeats off and repeats happen more often than people expect. Draw 23 dates from one non-leap year with repeats allowed and the chance that two match is about 50.7%, the well-known birthday problem. If your test data needs distinct dates, tick No repeats. If you want realistic data, where the same day can occur twice, leave it off. Choose Oldest first or Newest first to sort the list, which is useful for timelines and test rows.

What date format will it use?

You choose from seven formats, shown with 14 March 2026 as the example: 2026-03-14, 03/14/2026, 14/03/2026, 14.03.2026, March 14, 2026, 14 March 2026 and Saturday, March 14, 2026. The year-month-day form has the useful property that sorting the text also sorts the dates, so it is the safest choice for spreadsheets and databases.

Be careful with the two slash forms. 03/04/2026 means 4 March in the month-first form and 3 April in the day-first form, and the tool cannot tell which one the reader expects. When the dates will be read by people in different countries, use a form that spells the month out. The result card also shows the day of the week for a single date, and the earliest and latest dates when you draw several.

Use it with

Questions

How do I generate a random date between two dates?

Pick the From date and the To date and press Draw again. Every day between them, ends included, is equally likely.

Can I exclude weekends?

Yes, tick Weekdays only to draw from Monday to Friday. Public holidays are not skipped, because the tool has no holiday calendar.

Can I get multiple unique dates?

Yes. Set How many dates and tick No repeats. If the range has fewer days than you asked for, the tool tells you how many fit.

What date format will it use?

Your choice of seven: 2026-03-14, 03/14/2026, 14/03/2026, 14.03.2026, March 14, 2026, 14 March 2026 or Saturday, March 14, 2026.

Does it handle leap years?

Yes. 29 February is a day like any other in a leap year, and every day in the range has the same chance of being picked.

Are time zones a problem?

No. Only calendar days are drawn, and the arithmetic uses whole days, so the same range gives the same set of possible dates everywhere.

How this page was made: the tool's results are computed in your browser by the code on this page; the explanations were drafted with AI help and checked against the tool's own output.