Generate sample dates at
spotzee.com/tools/date-generator.
Why this matters
Hardcoded dates go stale. A fixture value that was safely in the future can become a past date and break renewal, expiry or scheduling tests. Date generator output can stay relative, seeded or bounded without hand-editing fixture files. Calendar logic also fails in quiet ways. Month labels overflow small UI cells. Date-only inputs get rejected by APIs that require a time-zone offset. And time-zone identifiers need to be valid IANA strings if they feed scheduling settings. Each Extended API call deducts a small per-call amount from your Spotzee credit balance. See the Spotzee pricing page for live per-tool pricing.How it works
1
Send the request
POST to
/generic/data/generate/date with count and a required method
parameter. The count is a string from 1 to 100.2
Choose a method
Use one of 11 methods:
anytime, between, betweens, birthdate,
future, past, recent, soon, month, weekday or timeZone.3
Set scoped parameters
Send date boundaries, reference dates, age or year ranges, day or year
windows, locale, abbreviation mode, context and seed values when the
selected method uses them.
4
Read the response
Date methods return
data.dates[]. Month, weekday and time-zone methods
return data.values[], alongside generated, locale, method and
optional seed.Method reference
Boundary fields such as
from, to and refDate must be ISO 8601 date-time strings with a time-zone offset. 2024-01-01T00:00:00.000Z is valid. 2024-01-01 is rejected.
What to watch for
- Date-only boundary values. Use full ISO date-time strings with an offset for
from,toandrefDate. - Wrong method for the fixture. Use
recentfor activity fields,futureorsoonfor due dates,birthdatefor age paths andtimeZonefor scheduling preferences. - String output.
month,weekdayandtimeZonereturnvalues[], notdates[]. - Birthdate ranges. With
mode=age,minandmaxare ages. Withmode=year, they are years. - Large batches. One request generates
1to100values. For more rows, call the endpoint again and vary the seed when you need a different batch.
FAQs
What format are generated dates in?
What format are generated dates in?
Generated date methods return ISO 8601 date-time strings in UTC. Boundary inputs also need a date, time and time-zone offset. Month, weekday and time-zone methods return strings instead.
What methods does the date generator support?
What methods does the date generator support?
The date generator supports 11 methods:
anytime, between, betweens,
birthdate, future, past, recent, soon, month, weekday and
timeZone. Use the date methods for timestamps and the utility methods for
calendar labels or IANA time-zone identifiers.Can I generate dates within a custom range?
Can I generate dates within a custom range?
Yes. Use
method=between or method=betweens with from and to values.
Both values must include a date, time and time-zone offset.Can I reproduce random date generator output?
Can I reproduce random date generator output?
Yes. Set a numeric seed to reproduce the same random date generator output for
the same option set. Leave the seed blank when you want a fresh random batch.
Is this useful for calendar UI test data?
Is this useful for calendar UI test data?
Yes. It works as a test data generator for calendar UI because it returns
timestamps, month names, weekday names and time-zone strings. Use locale and
abbreviation controls to check translated labels and compact layouts.
Where can I learn more about date generation?
Where can I learn more about date generation?
Use this date generator guide for method details, then combine date data with the person generator guide, contact generator guide and name generator guide to build full test datasets.