Utf8jsonreader Datetimeoffset Parsing Rfc 3339 Today
✅ RFC 3339 requires T separator, : in offset, optional fraction. public static class Utf8JsonReaderExtensions
throw new JsonException("Invalid RFC 3339 DateTimeOffset string."); utf8jsonreader datetimeoffset parsing rfc 3339
reader.Read(); // move to value DateTimeOffset created = ParseDateTimeOffsetFromReader(ref reader); Console.WriteLine(created); ✅ RFC 3339 requires T separator, : in
throw new JsonException($"Invalid RFC 3339 DateTimeOffset format: dateString"); ✅ RFC 3339 requires T separator
If you need UTC normalization: