YAML & TOML Date Format Converter

YAML and TOML both define native timestamp types: date-only (`2026-08-13`), local datetime (`2026-08-13T14:30:00`), and offset/UTC datetime (`2026-08-13T14:30:00Z` or `+00:00`). Parsers treat these as typed values, not strings, so format details matter.

This converter renders your date-time in each YAML/TOML timestamp shape so you can write config files that parse into the intended date type.

Timezone:
Enter a date-time above to see the conversion results.

YAML & TOML Date Format Converter Quick Reference

FormatPattern / DescriptionExample 1Example 2
YAML TimestampCanonical format2026-08-13T14:30:00.000Z2026-01-01T00:00:00.000Z
YAML Timestamp (Offset)With Offset2026-08-13T14:30:00Z2026-01-01T00:00:00Z
YAML Timestamp (UTC)Canonical2026-08-13T14:30:00.000Z2026-01-01T00:00:00.000Z
TOML DateRFC 33392026-08-13T14:30:00.000Z2026-01-01T00:00:00.000Z

* Examples are rendered in UTC for the fixed sample instants above.

When to Use YAML & TOML Date Format

Config file authoring

Write `expires_at: 2026-08-13T14:30:00Z` in a format your YAML/TOML parser recognizes as a datetime, not a string.

CI & IaC configuration

Terraform, GitHub Actions and Ansible parse timestamp fields; verify values match the required type (date vs datetime vs offset).

Cross-language parsing

Confirm the timestamp string parses identically in Python (PyYAML), Go (yaml.v3) and Rust (serde_yaml) consumers.

Frequently Asked Questions

What is a YAML timestamp type?

YAML 1.1 `timestamp` type matches `YYYY-MM-DD` (date), `YYYY-MM-DDTHH:mm:ss` (local), and `...Z`/`...±HH:MM` (UTC/offset). Parsers return native date objects.

What is the TOML datetime format?

TOML uses RFC 3339: `2026-08-13` (local date), `2026-08-13T14:30:00` (local datetime), `2026-08-13T14:30:00Z` (offset datetime) or `2026-08-13T14:30:00+02:00`.

What is the difference between local and offset datetime?

Local datetime has no zone and is interpreted in the reader's context; offset/UTC datetime pins the instant absolutely. For configs, offsets avoid ambiguity.

Will YAML treat my date as a string?

If the value is quoted (`"2026-08-13"`) it is a string; unquoted it becomes a typed date. This distinction changes behavior in schemas and validators.

Related Time Format Converters

All Format Guides

Need to Convert Between All Formats?

Use the main Time Format Converter for instant conversion across 100+ formats — epoch, ISO 8601, RFC 3339, SQL datetime, military time and more in one click.

Open Time Format Converter