---
title: Format Date API
slug: date-format
url: https://apyhub.com/dosvak/service/date-format
provider: Dosvak LLC
categories: [Developer Tools]
tags: [date-formatting, datetime, strftime, timestamp, developer-tools]
auth: api_key
---

# Format Date API

Format an ISO datetime string with a Python strftime pattern. Returns the input, format, and formatted result for logs, exports, and displays.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| GET | `` | What it does Formats an ISO datetime string using a Python strftime pattern. It takes the input dat… | 10 |

## About

## What it does
Date Formatter takes an ISO datetime string and formats it with a Python `strftime` pattern. Send `dt` in the query string, optionally add `fmt`, and get back the original `input`, the `format` used, and the formatted `result`.

Use it when your app needs to present timestamps in a user-facing or integration-specific layout without reimplementing date formatting logic. It is useful for logs, dashboards, exports, emails, and any workflow where the same ISO datetime needs to appear in different local display formats.

The API is small and explicit: one datetime in, one formatted string out. If you omit `fmt`, the formatter uses `%Y-%m-%d %H:%M:%S` by default. That makes it easy to normalize date presentation across services while keeping the formatting rule in one place.

Because the response includes both the source value and the applied format, you can trace exactly how a timestamp was rendered and use the result directly in downstream systems.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/dosvak/service/date-format
