To parse an RFC 3339 date and time value from JSON using Utf8JsonReader and DateTimeOffset , you can follow these steps:
using System.Text.Json;
return dto;
// Access the raw UTF-8 bytes ReadOnlySpan<byte> source = reader.ValueSpan; utf8jsonreader datetimeoffset rfc 3339