datetime
TemporalGenerate ISO 8601 datetime strings within optional min/max bounds. The universal datetime format for APIs and databases.
Example Outputs
2024-07-14T09:23:41.000Z2026-01-15T14:30:00.000Z2023-12-25T00:00:00.000ZParameters
| Parameter | Description |
|---|---|
| min | Earliest datetime (ISO string) |
| max | Latest datetime (ISO string) |
API Usage
Send a POST request to generate datetime 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": "datetime",
"type": "datetime",
"params": {
"min": 1,
"max": 100
}
}
]
}
]
}'Common Use Cases
- Timestamp fields
- Created/updated columns
- Event scheduling
- Log entry generation
Quick Info
- Field Type
- datetime
- Category
- Temporal
- Parameters
- 2 parameters
- Output Format
- JSON, CSV, SQL
Related Types
Generate DateTime + 155 more types via API
One API call. Multiple tables. Relational integrity. Free tier included.