We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
Random Date Generator
If this tool helped you, you can buy us a coffee ☕
Accurately generate random dates within a specified range, ideal for software testing and data simulation.
1 - 200 items
Set a date range and click generate
When you need to simulate batch date data for real-world scenarios, creating them manually is both inefficient and lacks true randomness. This tool uses an algorithm to generate uniformly distributed dates within a user-defined closed interval (including the start and end dates). It supports 6 standard output formats, such as YYYY-MM-DD, and each date is an independently generated pseudo-random sequence.
Will the generated dates repeat?
No. Each date is sampled independently. When the quantity approaches the total number of days in the range, the system automatically prevents duplicates.
How can I verify that the dates are within the specified range?
All output results undergo range validation. You can verify them by: 1) Checking that the minimum date is ≥ the start date; 2) Checking that the maximum date is ≤ the end date; 3) Confirming that the number of dates matches your input value.
If the time span exceeds 3 years, we recommend generating dates in batches. The result box supports Ctrl+A to select and copy all. Generating 200 records takes about 300ms, so please avoid clicking too frequently.
In software testing, we recommend using this tool to generate the following typical test cases: 1) Cross-year dates (e.g., 2023-12-31 to 2024-01-01); 2) Leap year February dates; 3) Beginning and end of month dates. For example, when testing a financial system, you can generate boundary sequences like [2024-02-28, 2024-02-29, 2024-03-01].