Json.NET - Quick Starts & API Documentation
ToString Method (value)
Namespaces ► Newtonsoft.Json ► JsonConvert ► ToString(DateTimeOffset)
Converts the DateTimeOffset to its JSON string representation.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static string ToString( DateTimeOffset value )
Public Shared Function ToString ( _ value As DateTimeOffset _ ) As String
public: static String^ ToString( DateTimeOffset value )
Parameters
- value (DateTimeOffset)
- The value to convert.
Return Value
A JSON string representation of the DateTimeOffset.