SQL Format date Online
Format date/timestamp values using tokens.
Run details
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. Use PostgreSQL’s function reference to adapt the input to SQL syntax.
- Format
"Y-m-d H:i:s"- Timestamp (optional)
""
2026-02-10T12:00:00Z
2026-02-10 12:00:00
Using this operation in SQL
The interactive result uses JavaScript. Check the database dialect. PostgreSQL text functions use SQL-style one-based positions and LIKE uses its own pattern syntax.