Share via


JsonPatch.GetDateTime(ReadOnlySpan<Byte>, StandardFormat) Method

Definition

Gets a DateTime value at the specified JSON path.

public DateTime GetDateTime(ReadOnlySpan<byte> jsonPath, System.Buffers.StandardFormat format = default);
member this.GetDateTime : ReadOnlySpan<byte> * System.Buffers.StandardFormat -> DateTime
Public Function GetDateTime (jsonPath As ReadOnlySpan(Of Byte), Optional format As StandardFormat = Nothing) As DateTime

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

format
StandardFormat

The format the DateTime is in.

Returns

Exceptions

If the jsonPath was not found.

Applies to