Click or drag to resize
Json.NET

JsonConvertToString Method (DateTimeOffset)

 
Converts the DateTimeOffset to its JSON string representation.

Namespace:  Newtonsoft.Json
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public static string ToString(
	DateTimeOffset value
)

Parameters

value
Type: SystemDateTimeOffset
The value to convert.

Return Value

Type: String
A JSON string representation of the DateTimeOffset.
See Also