Time & Date Utilities100% Client-Side

Generate Random Dates in a Range

Enter start and end dates to draw sample calendar dates from that range. The output uses YYYY-MM-DD and puts each result on its own line. Both endpoints are eligible, and valid leap days can appear. This is useful for creating date fixtures or filling examples in a date field. Set a single-day range when you want a predictable result while checking the generator controls.

Configuration Options
Output

How to Use the Random Date Generator for a Date Range

  1. 1Enter Start and End as YYYY-MM-DD, with the end on or after the start.
  2. 2Set Number of results from 1 to 100.
  3. 3Use Generate to refresh the values without changing the range.
  4. 4Copy the dates or save the whole result when a test needs the same list later.

Input & Output Examples

The leap day is the only available date, so both draws produce the same line.

Input Sample
Start 2024-02-29, end 2024-02-29, 2 results
Expected Output
2024-02-29
2024-02-29

One possible draw. The range crosses a month boundary and includes both dates used as bounds.

Input Sample
Start 2024-01-30, end 2024-02-02, 3 results
Expected Output
2024-02-02
2024-01-31
2024-01-30

Practical Developer Workflows

  • Create date-entry examples for a form that accepts a specific written format.
  • Generate sample dates across a month boundary for a fixture.
  • Test a single valid leap day before widening the range.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

Either endpoint can appear. When they are identical, that date is the only possible draw. Use matching endpoints to check a single calendar fixture without making its expected value depend on a random choice.

Explore Other Tools

7 suggested tools

View all tools