MockHero

date_past

Temporal

Generate dates guaranteed to be in the past. For created_at timestamps, historical records, and any field representing something that already happened.

Example Outputs

2023-09-222024-01-152022-06-30

API Usage

Send a POST request to generate past 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_past",
          "type": "date_past"
        }
      ]
    }
  ]
}'

Common Use Cases

  • created_at fields
  • Historical data seeding
  • Audit log generation
  • Past event records

Quick Info

Field Type
date_past
Category
Temporal
Parameters
None required
Output Format
JSON, CSV, SQL

Try it now

Generate past date data instantly in the playground.

Generate Past Date + 155 more types via API

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

Get Started Free