GuideAPI referenceSDKs
Dashboard
Utilities

Get Current Date and Time

Return the current server time formatted in an IANA timezone.

POST/v2/utils/current-date

Request

curl -X POST "https://moltsetz.vercel.app/v2/utils/current-date" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "region": "America/New_York"
}'

Body

FieldTypeRequiredDescription and limits
regionstringRequiredIANA timezone name.For example America/New_York or Asia/Kolkata

Pagination

This endpoint is not paginated.

Credits

One request credit is recorded only when this endpoint returns a 2xx response. Authentication, validation, rate-limit, and not-found responses do not consume a credit.

Response

FieldTypeDescription
datetimestringLocalized date and time.
timestampintegerUnix timestamp in seconds.
timezonestringAccepted IANA timezone.

Example response

{
  "datetime": "2026-08-02 05:50:00",
  "timestamp": 1785664200,
  "timezone": "America/New_York"
}

Errors

StatusCodeWhen
422INVALID_INPUTA required value is missing, malformed, or outside its documented limits.
401UNAUTHORIZEDThe x-api-key header is missing or invalid.
402CREDITS_EXHAUSTEDA limited plan has no request credits remaining.
405METHOD_NOT_ALLOWEDThe endpoint is called with an unsupported HTTP method.
429RATE_LIMIT_EXCEEDEDThe API key exceeds its plan-wide requests-per-second limit.
500DATA_SERVICE_ERRORThe data service cannot complete the request.
{
  "success": false,
  "error": {
    "code": "INVALID_INPUT",
    "message": "A field-specific validation message"
  }
}