Json.NET Documentation
Json.NET Documentation
API Reference
Newtonsoft.Json
JsonConvert Class
JsonConvert Methods
ToString Method
ToString Method (Boolean)
ToString Method (Byte)
ToString Method (Char)
ToString Method (DateTime)
ToString Method (DateTimeOffset)
ToString Method (Decimal)
ToString Method (Double)
ToString Method (Enum)
ToString Method (Guid)
ToString Method (Int16)
ToString Method (Int32)
ToString Method (Int64)
ToString Method (Object)
ToString Method (SByte)
ToString Method (Single)
ToString Method (String)
ToString Method (TimeSpan)
ToString Method (UInt16)
ToString Method (UInt32)
ToString Method (UInt64)
ToString Method (Uri)
ToString Method (DateTimeOffset, DateFormatHandling)
ToString Method (String, Char)
ToString Method (DateTime, DateFormatHandling, DateTimeZoneHandling)
ToString Method (String, Char, StringEscapeHandling)
JsonConvert
ToString 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#
Copy
public
static
string
ToString
(
DateTimeOffset
value
)
Parameters
value
Type:
System
DateTimeOffset
The value to convert.
Return Value
Type:
String
A JSON string representation of the
DateTimeOffset
.
See Also
Reference
JsonConvert Class
ToString Overload
Newtonsoft.Json Namespace
Json.NET Home