Test Date Generator — Dummy Dates for Fixtures

Generate synthetic dates, date-times and times for databases, fixtures and form tests. Not a calendar, a countdown or a timestamp converter.

Loading…
How the test date generator works
Synthetic dates, date-times and times for fixtures and database seeds, always in UTC. This is not a calendar, a countdown or a timestamp converter.

How generation works

Pick a quantity (1 to 100), the kind, the range, the format and the order. The list is rebuilt each time you change an option. Copy everything or download it as JSON, CSV, SQL or TXT. All values are in UTC, and ISO date-times end with Z.

Options

Quantity
How many rows to generate, from 1 to 100 (10 by default).
Kind
Date writes YYYY-MM-DD, as used by DATE columns and HTML date fields. Datetime, the default, writes a UTC date and time ending with Z, the shape of a timestamptz column. Time writes HH:mm:ss and ignores the range.
Range
A UTC window counted from today, bounds included. Presets cover the last 30 or 365 days, the next 365 days and 30 days either side of today. Adult DOB draws dates of birth for ages 18 to 80, and Custom range takes your own From and To dates. If From is after To, the list stays empty. Adult DOB does not switch the kind to Date for you.
Format
The formats on offer depend on the kind. ISO datetime (RFC 3339, ending with Z) is the default for date-times. The Date kind also has two fixed day-month-year formats, 17.03.2026 and 17/03/2026, but no free pattern field. SQL DATETIME has no time zone suffix. In Unix format, a date is the UTC midnight of that day. Locale follows the page language through the browser's Intl API.
Order
Random, the default, scatters the values. Ascending puts the oldest first, so a created_at seed looks right under ORDER BY. Descending puts the newest first, as with ORDER BY DESC.

Examples

Default created_at value

Settings

kind=datetime, range=last365d, format=isoDateTime

Sample output

2026-03-17T14:25:53Z

Adult date of birth as a DATE

Settings

kind=date, range=adultDob, format=isoDate

Sample output

1987-11-04

Related tools

For matching columns, try the test email generator, the test phone number generator or the test name generator. A JSON table comes from the JSON test data generator, and IDs from the UUID generator.

Test date FAQ

Fixtures, UTC and what this tool does not do

I searched for a random date generator. Is this it?

Yes, if you need dummy dates for fixtures, database seeds and form tests. It does not pick a date for a party or a single lucky day. It writes a list for developers to paste.

Is this a fake date generator or birthday generator?

It writes synthetic dates, including a range of adult dates of birth (ages 18 to 80). It does not look up famous birthdays, star signs or holidays. A generated date can match a real person's birthday by chance.

Is this a Unix timestamp converter?

No. You can write the output as Unix seconds or milliseconds for fixtures, but this is not a live clock or an epoch converter. To convert a real timestamp, use a dedicated converter.

Why is a date in Unix format at midnight UTC?

A DATE has no time of day. In Unix format the Date kind uses Date.UTC(y, m-1, d, 0, 0, 0), so seed jobs get a stable midnight value. A datetime keeps its own time. For the Time kind, the exported Unix value counts seconds from midnight (0 to 86399), not from the epoch.

Dummy names, emails, phone numbers, addresses, dates, IBANs, card numbers and JSON, CSV or SQL rows for fixtures and database seeds. Everything is generated in your browser.