from date Earliest possible instant, inclusive. YYYY-MM-DD (= midnight UTC) or a full ISO 8601 timestamp. Years 1583–9999. Defaults to 365 days before today (UTC).
Uniformly random timestamps from any date range — ISO instant, Unix seconds, date, time and weekday — with an exact weekdays-only mode and seeded results.
Generated test data for fixtures and development
Every record is an independent uniform draw from [from, to] (millisecond precision, both bounds inclusive). The resolved range — defaults included — is echoed in meta.params.
| Parameter | Type | Default & allowed | Description |
|---|---|---|---|
from | date | example: 2026-01-01 | Earliest possible instant, inclusive. YYYY-MM-DD (= midnight UTC) or a full ISO 8601 timestamp. Years 1583–9999. Defaults to 365 days before today (UTC). |
to | date | example: 2026-12-31 | Latest possible instant, inclusive. YYYY-MM-DD means midnight UTC — that day is included only at exactly 00:00:00; pass a timestamp to cover it fully. Must be ≥ from. Defaults to today at UTC midnight. |
weekdaysOnly | boolean | default: false example: true | Only return instants that fall on Monday–Friday (UTC weekday), uniformly across the weekday portion of the range. Include the parameter bare to enable. A range with no weekday instant is a 400. |
from date Earliest possible instant, inclusive. YYYY-MM-DD (= midnight UTC) or a full ISO 8601 timestamp. Years 1583–9999. Defaults to 365 days before today (UTC).
to date Latest possible instant, inclusive. YYYY-MM-DD means midnight UTC — that day is included only at exactly 00:00:00; pass a timestamp to cover it fully. Must be ≥ from. Defaults to today at UTC midnight.
weekdaysOnly boolean Only return instants that fall on Monday–Friday (UTC weekday), uniformly across the weekday portion of the range. Include the parameter bare to enable. A range with no weekday instant is a 400.
| Parameter | Type | Default & allowed | Description |
|---|---|---|---|
count | int | default: 10 allowed: 1 – 100 example: 3 | How many records to generate (1–100). |
seed | int | example: 42 | Deterministic output: the same seed always returns the same records. Omit for random (the used seed is echoed in meta.seed). |
fields | list | example: iso,unix | Return only these fields (comma-separated). Mutually exclusive with 'exclude'. |
exclude | list | example: weekday | Return all fields except these (comma-separated). |
format | enum | default: json allowed: json | ndjson | csv example: csv | Response format: json envelope, ndjson (one record per line) or csv. |
pretty | boolean | default: false example: true | Pretty-print the JSON response. |
unwrap | boolean | default: false example: true | Drop the envelope: return the raw array/object without data/meta wrapper. |
count int How many records to generate (1–100).
seed int Deterministic output: the same seed always returns the same records. Omit for random (the used seed is echoed in meta.seed).
fields list Return only these fields (comma-separated). Mutually exclusive with 'exclude'.
exclude list Return all fields except these (comma-separated).
format enum Response format: json envelope, ndjson (one record per line) or csv.
pretty boolean Pretty-print the JSON response.
unwrap boolean Drop the envelope: return the raw array/object without data/meta wrapper.
| Field | Type | Description | Example |
|---|---|---|---|
iso | string (ISO 8601) | The generated instant in UTC, with millisecond precision. | 2026-03-14T09:26:53.123Z |
unix | integer | Seconds since the Unix epoch (floor of the instant; negative before 1970). | 1773480413 |
date | string (YYYY-MM-DD) | UTC calendar date of the instant. | 2026-03-14 |
time | string (HH:MM:SS) | UTC wall-clock time of the instant, seconds precision (milliseconds live in iso). | 09:26:53 |
weekday | string | English weekday name of the UTC date — never Saturday/Sunday when weekdaysOnly=true. | Saturday |
iso string (ISO 8601) The generated instant in UTC, with millisecond precision.
example: 2026-03-14T09:26:53.123Z
unix integer Seconds since the Unix epoch (floor of the instant; negative before 1970).
example: 1773480413
date string (YYYY-MM-DD) UTC calendar date of the instant.
example: 2026-03-14
time string (HH:MM:SS) UTC wall-clock time of the instant, seconds precision (milliseconds live in iso).
example: 09:26:53
weekday string English weekday name of the UTC date — never Saturday/Sunday when weekdaysOnly=true.
example: Saturday
/api/dates {
"data": [
{
"iso": "2026-01-19T09:22:04.990Z",
"unix": 1768814524,
"date": "2026-01-19",
"time": "09:22:04",
"weekday": "Monday"
},
{
"iso": "2025-08-12T10:25:52.652Z",
"unix": 1754994352,
"date": "2025-08-12",
"time": "10:25:52",
"weekday": "Tuesday"
},
{
"iso": "2026-06-06T19:10:47.489Z",
"unix": 1780773047,
"date": "2026-06-06",
"time": "19:10:47",
"weekday": "Saturday"
},
{
"iso": "2025-09-23T08:07:07.137Z",
"unix": 1758614827,
"date": "2025-09-23",
"time": "08:07:07",
"weekday": "Tuesday"
},
{
"iso": "2026-05-29T07:12:49.356Z",
"unix": 1780038769,
"date": "2026-05-29",
"time": "07:12:49",
"weekday": "Friday"
},
{
"iso": "2025-08-04T01:40:39.031Z",
"unix": 1754271639,
…
"generatedAt": "2026-07-29T08:13:22.000Z"
}
} /api/dates?from=2026-01-01&to=2026-12-31&count=5 {
"data": [
{
"iso": "2026-06-23T21:54:04.647Z",
"unix": 1782251644,
"date": "2026-06-23",
"time": "21:54:04",
"weekday": "Tuesday"
},
{
"iso": "2026-01-15T09:28:55.796Z",
"unix": 1768469335,
"date": "2026-01-15",
"time": "09:28:55",
"weekday": "Thursday"
},
{
"iso": "2026-11-08T22:36:44.071Z",
"unix": 1794177404,
"date": "2026-11-08",
"time": "22:36:44",
"weekday": "Sunday"
},
{
"iso": "2026-02-26T04:24:51.172Z",
"unix": 1772079891,
"date": "2026-02-26",
"time": "04:24:51",
"weekday": "Thursday"
},
{
"iso": "2026-10-31T11:12:17.659Z",
"unix": 1793445137,
"date": "2026-10-31",
"time": "11:12:17",
"weekday": "Saturday"
}
],
"meta": {
"endpoint": "dates",
…
"generatedAt": "2026-07-29T08:13:22.000Z"
}
} /api/dates?from=2026-01-01&to=2026-03-31&weekdaysOnly=true&seed=42&count=3 {
"data": [
{
"iso": "2026-02-12T02:24:21.574Z",
"unix": 1770863061,
"date": "2026-02-12",
"time": "02:24:21",
"weekday": "Thursday"
},
{
"iso": "2026-01-05T11:47:41.964Z",
"unix": 1767613661,
"date": "2026-01-05",
"time": "11:47:41",
"weekday": "Monday"
},
{
"iso": "2026-03-17T23:45:35.320Z",
"unix": 1773791135,
"date": "2026-03-17",
"time": "23:45:35",
"weekday": "Tuesday"
}
],
"meta": {
"endpoint": "dates",
"count": 3,
"seed": 42,
"params": {
"from": "2026-01-01",
"to": "2026-03-31",
"weekdaysOnly": true
},
"generatedAt": "2026-07-29T08:13:22.000Z"
}
} /api/dates?from=2026-01-01&to=2026-06-30&fields=date&format=csv date
2026-03-28
2026-01-08
2026-06-04
2026-01-28
2026-05-31
2026-01-03
2026-01-15
2026-05-31
2026-03-23
2026-06-23
Each record is one uniformly random instant, drawn at millisecond precision from the inclusive range [from, to] and returned in five ready-to-use shapes: the full ISO 8601 instant (iso), Unix seconds (unix), the UTC calendar date (date), the UTC wall-clock time (time) and the UTC weekday name.
The behaviors that usually bite are pinned down:
to defaults to today at UTC midnight, from to 365 days before that. The resolved bounds are always echoed in meta.params, so you can see exactly what range was used.to=2026-12-31 is the instant 2026-12-31T00:00:00Z — December 31 itself is only included at exactly midnight. Pass a timestamp (to=2026-12-31T23:59:59Z) to cover the whole day. Both endpoints of the range are reachable, and from=to legitimately pins every record to that single instant (with a warning).weekdaysOnly=true keeps output on Monday–Friday by UTC weekday — and it stays exactly uniform over the weekday portion of the range (no naive shift-off-the-weekend pile-up on Mondays and Fridays). A range containing no weekday instant at all (say, a single Saturday) is rejected with a 400 instead of quietly returning weekend data.from > to is a 400 naming both values — never a silent swap. Years are limited to 1583–9999: weekday names before the Gregorian reform would be historically wrong, and beyond 9999 the date field couldn't stay YYYY-MM-DD.This is mock data — random instants, not a dataset. With a seed the same query returns identical dates forever. For calendar facts about a specific date (ISO week, leap year, day of year) use /api/date-info; for the live clock in a timezone use /api/time.
from and to (YYYY-MM-DD) — timestamps are uniform inside the range, and both bounds genuinely constrain output (contract-tested).
Yes — weekdaysOnly=true excludes Saturdays and Sundays exactly, not probabilistically.
ISO 8601 instant, Unix seconds, date, time and weekday — project what you need with fields.
Real calendar facts for any date — weekday, ISO week, day of year, quarter, leap year, days in month, weekend flag and Unix timestamp. Defaults to today.
Current time in any IANA timezone — UTC instant, unix seconds, local date & time, UTC offset, ISO week, day of year and a live DST flag.
Fake account transactions with realistic merchants, weighted statuses and currency-correct amounts — filter by type, status, amount range and date window.
Sentiment-coherent fake product reviews — 1–2★ complain, 3★ shrug, 4–5★ rave — with star-rating and date-range filters and full seed determinism.