EthicalFusion

Random Date Generator

Generate a random date within a range — handy for testing, sampling and games.

Was this tool helpful?

Thanks for the feedback!

Pick a start and an end date, click Generate date, and this random date generator returns one date from that range, written out with its weekday and also in ISO format (YYYY-MM-DD). It is handy for test data, random audit checks, quiz questions or choosing a day for a surprise.

How the range works

  • From date and To date use your browser's date picker. Leave From empty and 1 January 1970 is used; leave To empty and 31 December 2035 is used.
  • If you enter the dates the wrong way round, they are swapped automatically.
  • The result can be the From date, the To date or any day in between, and every day in the range is equally likely. For any day in March 2026, choose 1 March 2026 to 31 March 2026.
  • If From and To are the same date, that date is returned every time.

The first line of the result uses your browser's language settings, so an Indian-English browser shows "Friday, 2 January 2026" while a US-English one shows "Friday, January 2, 2026".

Why the ISO line is worth copying

Both lines are worked out from your own local date, so they always show the same day. Use the ISO form (YYYY-MM-DD) when pasting into a spreadsheet, database or code: it sorts correctly as plain text, and it cannot be misread the way 03/04/2026 can, which means 3 April in India but 4 March in the United States.

Practical uses

  • Test data. Fill a date-of-birth field with realistic adult values by setting a range such as 1 January 1960 to 1 January 2008, or test booking forms with dates across month ends and leap years.
  • Surprise audits. Pick the days on which to check petty-cash vouchers, attendance registers or CCTV footage, so nobody can predict which days will be reviewed.
  • Teaching. Generate a date and ask students which day of the week it fell on, then reveal the answer from the weekday line.
  • Personal plans. Choose a random no-spend day each month, or a date for a surprise outing within the next few weeks.

Need many dates at once?

This page produces one date per click, which suits occasional picks. For a column of dates, a spreadsheet is quicker: in Excel or Google Sheets, =RANDBETWEEN(DATE(2026,1,1),DATE(2026,12,31)) formatted as a date returns a random date with both ends included, and you can fill it down as many rows as you need. It recalculates whenever the sheet changes, so paste the values as plain values once you are happy.

To measure how far apart two dates are, use the Date Difference Calculator; for random whole numbers instead of dates, the Random Number Generator does the job.

Frequently asked questions

Can the end date itself be picked?
Yes. The From date, the To date and every day between them can come up, each with the same chance.
What is the ISO date format?
It is the international YYYY-MM-DD order, such as 2026-03-14. Spreadsheets and databases read it reliably, and dates in this form sort correctly as text.
What happens if I leave the dates empty?
An empty From date becomes 1 January 1970 and an empty To date becomes 31 December 2035.
Can I generate several random dates at once?
Each click gives one date. For a long list, use RANDBETWEEN with DATE in Excel or Google Sheets and fill the formula down.
Can I pick dates in the past or the future?
Yes. Any range the date picker accepts will work, from historical dates to years ahead.

Related tools

Embed this tool on your site

Paste it into any blog or website. Free, with a credit link.