Date Formatter

Parse, reformat, and convert dates between timezones and formats.

POST 1 credit /v1/date-format
curl -X POST "https://devtools.toolkitapi.io/v1/date-format" \
  -H "Content-Type: application/json" \
  -d '{
    "date": "March 15, 2025 3:30 PM",
    "output_format": "%Y-%m-%d %H:%M:%S",
    "from_timezone": "US/Eastern",
    "to_timezone": "UTC"
  }'
import httpx

resp = httpx.post(
    "https://devtools.toolkitapi.io/v1/date-format",
    json={
    "date": "March 15, 2025 3:30 PM",
    "output_format": "%Y-%m-%d %H:%M:%S",
    "from_timezone": "US/Eastern",
    "to_timezone": "UTC"
  },
)
print(resp.json())
const resp = await fetch("https://devtools.toolkitapi.io/v1/date-format", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "date": "March 15, 2025 3:30 PM",
    "output_format": "%Y-%m-%d %H:%M:%S",
    "from_timezone": "US/Eastern",
    "to_timezone": "UTC"
  }),
});
const data = await resp.json();
console.log(data);
# See curl example
Response 200 OK
{
  "formatted": "2025-03-15 19:30:00",
  "iso8601": "2025-03-15T19:30:00+00:00",
  "timestamp": 1742064600,
  "timezone": "UTC"
}

Try It Live

Live Demo

Description

Parse, reformat, and convert dates between timezones and formats.

How to Use

1

1. Pass the date string in the `date` field. 2. Set `output_format` using strftime directives (e.g. `%Y-%m-%d`). 3. Optionally specify `from_timezone` and `to_timezone` for conversion.

About This Tool

Date Formatter parses date strings in virtually any format, converts between timezones, and outputs in your desired strftime format. Auto-detects input format when not specified.

Powered by Python's dateutil parser for flexible input parsing and IANA timezone database for accurate timezone conversions.

Why Use This Tool

Frequently Asked Questions

What date formats can it parse?
When `input_format` is omitted, the parser auto-detects most common formats: ISO 8601, RFC 2822, natural language dates ("March 15, 2025"), timestamps with various separators, and more.
What timezones are supported?
All IANA timezone names (e.g. `US/Eastern`, `Europe/Berlin`, `Asia/Tokyo`, `UTC`) from the standard timezone database.

Start using Date Formatter now

Get your free API key and make your first request in under a minute.