logo

Random Date Generator

Time Calculator
Date Calculator
Generate random dates or datetimes within a custom range with weekday filters and exclusions.

Supports multiple output formats including ISO 8601 and custom patterns. Ideal for populating test databases and mock datasets.

logo
Paji Toolset
Random Date Generator

Random Date Generator

Time Calculator
Date Calculator
Generate random dates or datetimes within a custom range with weekday filters and exclusions.
About this tool

Supports multiple output formats including ISO 8601 and custom patterns. Ideal for populating test databases and mock datasets.

FAQ

Common questions and answers about this topic.

How many random dates can I generate at once?

You can generate between 1 and 100 random dates in a single run. Adjust the "Count" field to set how many results to produce. If your range or exclusions cannot supply that many unique dates, the tool will warn you.

Will the generated dates ever repeat?

No. Within a single generation, all results are unique. The tool only returns dates within your range that are not blocked by weekday or excluded-date filters, and never picks the same value twice. If unique dates are not enough for your count, you will see a warning.

Can I exclude weekends, specific weekdays, or holidays?

Yes. Tick "Exclude weekends" to skip Saturday and Sunday, or use the weekday toggle group to pick any individual days to exclude. For holidays or other custom dates, paste them into the "Excluded dates list" field, one ISO date (YYYY-MM-DD) per line.

What format tokens can I use in the custom format?

Common tokens include YYYY (year), MM (month), DD (day), HH (hour, 24h), mm (minute), and ss (second). Wrap any literal text in square brackets, for example "YYYY[年]MM[月]DD[日]". Invalid tokens trigger an error so you can correct the format before generating.

When should I pick the ISO 8601 output format?

Choose ISO 8601 when the dates feed into a database, API, or programming script. Date-only mode emits values like 2025-01-31, while date + time mode emits values like 2025-01-31T14:30:00+08:00 with the timezone offset, which most languages and tools can parse without ambiguity.