MockHero

date_of_birth

Identity

Generate realistic dates of birth within configurable age ranges. Produces ISO dates that make sense — no 5-year-old account holders or 200-year-old users.

Example Outputs

1994-07-121988-03-222001-11-051975-08-30

Parameters

ParameterDescription
min_ageMinimum age (default 18)
max_ageMaximum age (default 80)

API Usage

Send a POST request to generate date of birth 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_of_birth",
          "type": "date_of_birth"
        }
      ]
    }
  ]
}'

Common Use Cases

  • User registration testing
  • Age verification testing
  • Insurance form seeding
  • Healthcare data generation

Quick Info

Field Type
date_of_birth
Category
Identity
Parameters
2 parameters
Output Format
JSON, CSV, SQL

Try it now

Generate date of birth data instantly in the playground.

Related Types

Generate Date of Birth + 155 more types via API

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

Get Started Free