Random Date Generator

Choose a start and end date and press Pick a date. Every allowed day in the range is equally likely, and you can limit it to weekdays, weekends or any days you like.

    Days of the week

    History (this visit only)

    Nothing yet. Results appear here.

      Quick answer: the generator counts every day between your two dates (both included) that falls on an allowed day of the week, then picks one of them uniformly at random. For 1 January to 31 December 2026 there are 365 days, so each has a 1 in 365 chance; with weekdays only there are 261, so each weekday has a 1 in 261 chance.

      Examples

      You want…Setting
      A random day for a team social next monthFrom and To across next month · Weekdays only
      Ten practice dates for a “what day of the week?” lesson1900 to today · How many: 10 · Format: with weekday
      A surprise date-night rotaNext 12 months · Weekends only · How many: 12 · Sort
      Test data for a spreadsheetAny range · Format: ISO (2026-12-01)

      How to use it

      1. Set From and To, or press a quick range. Both dates are included.
      2. Choose How many dates (up to 500) and a Format.
      3. Untick days of the week you don’t want, or press Weekdays only or Weekends only.
      4. Leave No repeated dates on for a list of different dates; tick Sort to list them in order.

      How it works

      Dates are handled as whole days on the UTC calendar, so time zones and clock changes can never move a result to the wrong day. The generator counts the allowed days exactly (no matter how long the range), picks a position with your browser’s cryptographic random generator and rejection sampling, and converts it back to a date. For several different dates it uses a partial Fisher–Yates shuffle, so every combination is equally likely.

      Dates use the Gregorian calendar throughout, including for dates before it was adopted, which is the usual convention for software (the “proleptic” Gregorian calendar).

      Questions

      Are the start and end dates included?

      Yes, both are included, as long as they fall on a day of the week you’ve allowed.

      Does it handle leap years?

      Yes. 29 February appears in leap years only, with the same chance as any other day.

      Can I pick a random time as well?

      Not yet. For a time, the number generator can pick an hour (0–23) and a minute (0–59).

      How far back or forward can I go?

      From 1 January in year 1 to 31 December 9999.

      References

      1. W3C. Web Cryptography Level 2: Crypto.getRandomValues(). World Wide Web Consortium specification.
      2. Daniel Lemire. Fast Random Integer Generation in an Interval. ACM Transactions on Modeling and Computer Simulation 29(1), 2019 (discusses modulo bias and rejection).
      3. Richard Durstenfeld. Algorithm 235: Random permutation. Communications of the ACM 7(7), 1964.

      Page reviewed 2 December 2026.