Getting Started
1: Convert time from New York to London.
curl -X 'POST' \
'https://api.opentimezone.com/convert' \
-H 'Content-Type: application/json' \
-d '{
"dateTime": "2024-10-14T00:00:00.000",
"fromTimezone": "America/New_York",
"toTimezone": "Europe/London"
}'
2: Convert UTC to New York time.
curl -X 'POST' \
'https://api.opentimezone.com/convert' \
-H 'Content-Type: application/json' \
-d '{
"dateTime": "2025-09-17T04:36:48.131338",
"fromTimezone": "UTC",
"toTimezone": "America/New_York"
}'
3: Convert New York to UTC time.
curl -X 'POST' \
'https://api.opentimezone.com/convert' \
-H 'Content-Type: application/json' \
-d '{
"dateTime": "2025-09-17T00:36:48.131394",
"fromTimezone": "America/New_York",
"toTimezone": "UTC"
}'
4: List all supported time zones.
curl -X 'GET' 'https://api.opentimezone.com/timezones'