Random Date Generator
Generate random dates and timestamps within a specific range. Features business-day filtering (no weekends), time constraints, and flexible formatting (ISO, US, EU).
Results
About
Generating random dates is a frequent requirement for software testing, populating calendars, or simulation scenarios. This tool allows you to pick a random point in time between a start and end date. It goes beyond simple randomization by offering a 'Business Days Only' filter, which algorithmically excludes Saturdays and Sundays from the possible results.
You can also control the output format, choosing between standard ISO 8601, US (MM/DD/YYYY), or European (DD/MM/YYYY) formats, and optionally include time components.
Formulas
The core logic determines a random millisecond offset:
If the 'Business Days' filter is active, the algorithm checks:
- Check Day. Calculate
DayOfWeek(0=Sun, 6=Sat). - Validate. If Day is 0 or 6, discard and re-roll (or adjust to nearest Monday).
- Format. Convert valid timestamp to string based on user selection.
Reference Data
| Format Name | Pattern | Example |
|---|---|---|
| ISO 8601 | YYYY-MM-DD HH:mm:ss | 2025-12-31 23:59:59 |
| US Standard | MM/DD/YYYY | 12/31/2025 |
| EU Standard | DD/MM/YYYY | 31/12/2025 |
| Unix Timestamp | Integer (Seconds) | 1767225599 |