Documentation

API URL


GET /convert-time

Headers
Code
Content-Type: application/json
Query Parameters


Example GET Request

Code
GET /api/v1/convert-time?sourceTime=2026-04-06T15:30:00&sourceZone=America/New_York&targetZone=Europe/London

Successful Response

Status
HTML
200 OK
Body
Code
{
  "success": true,
  "data": {
    "original_datetime": "2026-04-06T15:30:00",
    "original_timezone": "America/New_York",
    "converted_datetime": "2026-04-06T20:30:00",
    "converted_timezone": "Europe/London",
    "utc_datetime": "2026-04-06T19:30:00Z",
    "timezone_info": {
      "from": {
        "name": "America/New_York",
        "abbreviation": "EDT",
        "offset": "-04:00",
        "dst": true
      },
      "to": {
        "name": "Europe/London",
        "abbreviation": "BST",
        "offset": "+01:00",
        "dst": true
      }
    }
  },
  "meta": {
    "correlation_id": "conv_abc123",
    "processing_time": "12ms",
    "timestamp": "2026-04-06T19:30:00.000Z"
  }
}

Error Response

Example
Code
400 INVALID_TIMEZONE – Invalid timezone or location
400 MISSING_INPUT – Required parameter missing
500 SERVER_ERROR – Internal application error

Last Updated:  May 4, 2026