Utf8jsonreader Datetimeoffset Rfc 3339 Jun 2026

string propertyName = reader.GetString(); reader.Read(); // Move to the value

By default, the Utf8JsonReader.GetDateTimeOffset() method expects compliance with the extended profile of the standard. While RFC 3339 serves as a highly compatible, stricter profile of ISO 8601, slight differences in structural tolerance can trigger a JsonException during high-throughput serialization pipelines. Understanding the Spec: ISO 8601 vs. RFC 3339 utf8jsonreader datetimeoffset rfc 3339

| Format | Description | Example | | :--- | :--- | :--- | | | 'Z' suffix indicates Zulu time (UTC). | 2023-10-27T14:30:00Z | | Offset | Specific offset from UTC. | 2023-10-27T14:30:00+02:00 | | Fractional Seconds | Optional microseconds. | 2023-10-27T14:30:00.123Z | | Large Offset | Offset can be HH:MM or sometimes HHMM depending on strictness. | 2023-10-27T14:30:00-0500 (ISO strict usually prefers HH:MM ) | string propertyName = reader

public DateTimeOffset? ParseDateTimeOffset(ReadOnlySpan<byte> json) RFC 3339 | Format | Description | Example