JsonElement.GetDateTime JsonElement.GetDateTime JsonElement.GetDateTime JsonElement.GetDateTime Method

Definition

Gets the value of the element as a DateTime.

public:
 DateTime GetDateTime();
public DateTime GetDateTime ();
member this.GetDateTime : unit -> DateTime
Public Function GetDateTime () As DateTime

Returns

The value of the element as a DateTime.

Exceptions

Remarks

This method does not create a DateTime representation of values other than JSON strings.

Applies to