Skip to tool

Python Format date Online

Format date/time with token pattern.

The output updates as you type. The tool processes input in your browser.

Worked example

Use an ISO timestamp with an explicit offset. The browser formats in UTC using tokens such as Y, m, d, H, i, and s.

Format
"Y-m-d H:i:s"
Timestamp (optional)
""
Sample input
2026-02-10T12:00:00Z
Sample output
2026-02-10 12:00:00

Using this operation in Python

The interactive result uses JavaScript. Python str stores Unicode text. Encode to bytes when an API expects UTF-8 or another byte representation.

Python reference