Random Date Picker

Share:
Fun & Misc

Random Date Picker

Pick a random date in a range — with working-day filters

By Checked against sources by Last reviewed DATE PICKER RANDOM TOOLS SAMPLING
Your browser is too old for this tool’s interactive features. Please update to Safari 13.1, Chrome or Edge 80, Firefox 74 or newer.

Random Date Picker

Days of the week

Advertisement
After tool · AD-W1Responsive · Post-tool

How to Use the Random Date Picker

Set the date range

Choose a start and end date. Both ends are included, so a one-day range always returns that day. The range starts as today in Singapore through the same day next year; set any range between the years 1 and 9999.

Choose which days count

Tick the days of the week you want — Mon–Fri for working days, Sat–Sun for weekends, or just Tuesdays and Thursdays. The line under the controls counts the matching dates as you change them.

Skip public holidays (optional)

Choose Singapore, Malaysia (federal), United States (federal) or England and Wales to leave that list's public holidays out of the draw. Each list covers only the years its government has published; if your range runs past them, a note says so.

Pick and copy

Choose how many dates you want (up to 100, never the same date twice) and press "Pick a random date". Each is shown in full and as an ISO date (YYYY-MM-DD); copy them with one click for spreadsheets or scripts. It all runs in your browser.

Advertisement
After how-to · AD-W2Responsive

Picking a Random Date — and Why the Filters Matter

More Than a Dice Roll on the Calendar

Picking a random date sounds simple — choose any day between two dates — and for many uses it is. Survey researchers select a random start date for a panel; planners pick a random weekend for an offsite; teachers choose a random day in term for a surprise quiz; and writers and game-masters use it to seed fiction or scenarios. The basic operation here is to give every day in your chosen range, both ends included, an exactly equal chance, and draw one using the browser's cryptographic random number generator so there is no bias toward the start or end of the range. Because the draw is unbiased and runs entirely on your device, you can regenerate as many times as you like and trust that each date is fairly chosen.

What makes a random-date tool useful for work is the filtering. If you are sampling for an audit or scheduling a meeting, you usually do not want a Saturday or a public holiday — you want a working day. This picker lets you restrict the draw to any days of the week, and it can also skip the public holidays of Singapore, Malaysia (federal), the United States (federal) or England and Wales, so the date it hands you is one people are actually at their desks. It counts the days in your range that pass the filter, draws a whole number below that count, and finds that day in the calendar, which guarantees the result always satisfies the filter and also tells you how many valid dates existed — handy for knowing how constrained your range really was.

"A random date is easy; a random working day is the useful one. The value is in the filters — weekday, weekend, or true business day with the public holidays taken out."

Sampling, Scheduling, and Fair Draws

A few notes on getting the most from it. For statistical sampling — picking random dates to inspect records, audit transactions, or schedule spot checks — the weekday and business-day filters keep your sample realistic, and because every qualifying date has equal probability, your sample is unbiased. For event planning, ticking Saturday and Sunday quickly narrows a long range to the weekends. If a filter returns no dates — for example, asking for weekends in a range that only spans a working week — the tool tells you plainly so you can widen the range or relax the filter rather than getting a misleading result. The holiday lists are Singapore's public holidays for 2025 to 2027 as published by the Ministry of Manpower, including the Monday MOM lists when a holiday falls on a Sunday; Malaysia's federal holidays for 2025 to 2027 as published by the Prime Minister's Department, with New Year's Day and replacement days; US federal holidays for 2025 to 2030 as scheduled by the U.S. Office of Personnel Management, on the weekday they are observed; and England and Wales bank holidays for 2025 to 2028 from GOV.UK (Scotland and Northern Ireland have their own lists, which are not included). The day-of-week filter works for any range and any country. Your dates never leave your browser, and there is no limit on how often you can draw.

What each holiday list does with a weekend holiday

01

Singapore: when a public holiday falls on a Sunday, MOM lists the Monday after it as a holiday for employees whose rest day is Sunday — 10 August 2026 for National Day, for example. The picker skips that Monday.

02

United States: OPM moves a Saturday holiday to the Friday before and a Sunday one to the Monday after, so New Year's Day 2028 is taken on Friday 31 December 2027.

03

England and Wales: Boxing Day 2026 falls on a Saturday, and GOV.UK lists Monday 28 December as its substitute day.

04

Coverage: Singapore and Malaysia 2025–2027, United States 2025–2030, England and Wales 2025–2028 — the years on each official list when we read it in November 2026.

📅 Research current as of 04 Nov 2026 · Sources: Ministry of Manpower, Singapore. Public holidays 2025–2027 (read November 2026); Prime Minister's Department, Malaysia (BKPP). Federal public holidays 2027: https://www.kabinet.gov.my/storage/2026/08/HKA_2027.pdf; U.S. Office of Personnel Management. Federal Holidays 2025–2030: https://www.opm.gov/policy-data-oversight/pay-leave/federal-holidays/; GOV.UK. Bank holidays, England and Wales 2025–2028: https://www.gov.uk/bank-holidays
Standards, published formulas, and reference data are revised over time — check against a current authoritative source before relying on these figures.

Frequently Asked Questions

  • It counts every day from your start date to your end date, both included, that passes your filter, gives each an exactly equal chance, and draws one using the browser's cryptographic random number generator. Because it draws from the filtered set, the result always satisfies your filter — a "weekday" pick is always a weekday — and it also tells you how many valid dates were available.
  • Yes. Press Mon–Fri to leave out Saturdays and Sundays, then choose Singapore, Malaysia (federal), United States (federal) or England and Wales under "Skip public holidays". If your working week is different — Sunday to Thursday, say — tick those days instead.
  • Singapore (Ministry of Manpower, 2025–2027, with the Monday MOM lists after a Sunday holiday), Malaysia (federal holidays from the Prime Minister's Department, 2025–2027, with New Year's Day and the replacement days; state-only holidays are not included), the United States (federal holidays from the Office of Personnel Management, 2025–2030, on the day they are observed) and England and Wales (bank holidays from GOV.UK, 2025–2028). Inauguration Day is not included, because it is a holiday only for federal employees in the Washington, DC area. We list only dates a government has published rather than guessing at movable holidays.
  • The count under the controls drops to zero as soon as nothing matches — for example if you tick only Saturday and Sunday in a range that covers one working week — and the button then says so instead of returning a date that breaks your filter.
  • Yes. It uses the browser's cryptographic random number generator with rejection sampling so that every qualifying date has exactly equal probability, with no bias toward the start or end of the range. This matters for statistical sampling, where a biased draw would skew your results. For everyday use it simply means the pick is genuinely fair.
  • The result is shown two ways: a readable full date with the day of the week (for example, "Monday, 2 June 2025") and an ISO date (2025-06-02). The copy button copies the ISO format, which is the standard, unambiguous format for spreadsheets, databases, and scripts. ISO dates also sort correctly as plain text.
  • Yes. Set "How many dates" and the picker draws that many different dates at once, every set of that size equally likely (a simple random sample without replacement), and lists them in calendar order. The count under the controls is the size of the eligible pool.
  • Yes. Everything runs in your browser — your date range and results are never uploaded, stored, or put in the page address. The holiday lists are part of the page, so nothing else is downloaded, and the tool works offline once the page has loaded.
  • Any range a date field can hold, from the year 1 to 9999 — more than 3.6 million days — and the pick is instant. The picker counts matching days with calendar arithmetic instead of listing them, so the last day of a long range is exactly as likely as the first. (An earlier version stopped listing at 200,000 days, so dates beyond about 547 years into a range could never come up.)
  • Each list starts in 2025 and stops at the last year its government has published: 2027 for Singapore and Malaysia, 2030 for the United States, 2028 for England and Wales. Outside those years the day-of-week filter still applies but no holiday is skipped, so a public holiday can come up. When your range runs past a list, a note under the controls says so; check any date there against the official list.

Method & sources

How it computes

Dates are whole calendar days (no time zone). N = days from start to end, both included, whose weekday is ticked, minus listed public holidays on those weekdays, counted by week arithmetic. One uniform integer k < N (crypto.getRandomValues, rejection-sampled) picks the k-th such day by binary search; several dates are a uniform k-subset (Floyd), in calendar order. Default start: today in Singapore.

What this tool implements

  • Every date from the start to the end date, both included, that passes the filter has exactly the same chance, over any range a date field can hold (years 1 to 9999). The matching days are counted with week arithmetic, not listed, so there is no cap.
  • Dates are handled as whole calendar days, so a date-only range cannot shift by a day in any time zone; the default range starts on the business day in Singapore (UTC+8).
  • Several dates are a simple random sample without replacement (Floyd's algorithm, Bentley and Floyd 1987), shown in calendar order.
  • Singapore: MOM public holidays 2025–2027, including the Monday MOM lists after a Sunday holiday. Malaysia: federal holidays 2025–2027 from the Prime Minister's Department, with New Year's Day and replacement days, as the Working Days Calculator defines them (state-only holidays excluded). Both are the Working Days Calculator's own lists, held to the leave optimiser's verified list.
  • United States: the OPM federal holiday schedules 2025–2030 on the observed weekday (5 U.S.C. 6103(b); E.O. 11582); Inauguration Day is not included. England and Wales: GOV.UK bank holidays 2025–2028 with substitute days; Scotland and Northern Ireland differ and are not covered.
  • Outside a list's years no holiday is skipped, and the page says so for the range in hand.
  • Corrected 2026-11-04: the 200,000-day cap (dates past about 547 years into a range unreachable); holiday lists fetched after load, so an early or failed fetch skipped nothing silently; US list extended to 2030 and England and Wales to 2028 as published; Singapore and Malaysia added; any set of weekdays can be chosen.

Sources

Advertisement
Pre-footer · AD-W3 728 × 90