Date Generator
Generate random dates within a specified range. Perfect for testing and sampling.
Date Generator
Generated Dates
- December 25th, 2026 8:17 AM
- May 25th, 2027 7:56 PM
- July 5th, 2027 1:25 PM
- January 2nd, 2027 2:20 AM
- June 27th, 2027 7:21 AM
Date generator
Generate random dates
Create random dates within a specified range using the formula:
Where daysInRange is the number of days between the start and end dates.
Worked example
Generate a random date between 1 January 2025 and 31 December 2025:
- Start date: 1 January 2025
- End date: 31 December 2025
- Days in range: 365 - 1 = 364 days
- Random offset: 142 days (example)
- Result: 1 January + 142 days = 22 May 2025
Result: 22 May 2025 (example - actual result will vary)
How to use
- Enter the start date (earliest possible date)
- Enter the end date (latest possible date)
- Optionally specify if you want only weekdays or weekends
- Click "Generate" to create a random date
- Use the "Generate multiple" option to create a list of dates
Date range constraints
- Start date must be before or equal to end date
- Date range cannot exceed 10 years
- Dates must be within the valid JavaScript Date range (approximately 100,000 BCE to 100,000 CE)
Common use cases
- Generating test data for applications
- Creating random dates for surveys and polls
- Selecting random dates for raffles or lotteries
- Simulating historical events for educational purposes
- Planning random events or reminders
Generating multiple dates
To generate multiple random dates:
- Enter your date range
- Specify the number of dates you need
- Choose whether to allow duplicates
- The tool generates a list of dates in chronological order
FAQ
Can I generate dates in the past? Yes, enter a past start and end date.
Can I generate dates in the future? Yes, enter a future start and end date.
Can I generate only business days? Yes, use the "Weekdays only" option to exclude weekends.
Can I generate only weekends? Yes, use the "Weekends only" option to include only Saturdays and Sundays.
Are the dates truly random? Yes, the tool uses a cryptographically secure random number generator.
Can I export the generated dates? Yes, copy the list or use the download option if available.