MockHero

date

Temporal

Generate ISO date strings (YYYY-MM-DD) without time component. For date-only fields like birthdays, due dates, and event dates.

Example Outputs

2024-07-142026-03-222025-12-01

Parameters

ParameterDescription
minEarliest date
maxLatest date

API Usage

Send a POST request to generate date data:

curl -X POST https://mockhero.dev/api/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "tables": [
    {
      "name": "example",
      "count": 5,
      "fields": [
        {
          "name": "date",
          "type": "date",
          "params": {
            "min": 1,
            "max": 100
          }
        }
      ]
    }
  ]
}'

Common Use Cases

  • Date fields
  • Birthday columns
  • Due date testing
  • Calendar event seeding

Quick Info

Field Type
date
Category
Temporal
Parameters
2 parameters
Output Format
JSON, CSV, SQL

Try it now

Generate date data instantly in the playground.

Generate Date + 155 more types via API

One API call. Multiple tables. Relational integrity. Free tier included.

Get Started Free