Json.NET - Quick Starts & API Documentation
JsonDateTimeSerializationMode Enumeration
Namespaces ► Newtonsoft.Json.Converters ► JsonDateTimeSerializationMode
Specifies whether a DateTime object represents a local time, a Coordinated Universal Time (UTC), or is not specified as either local time or UTC.

C# | Visual Basic | Visual C++ |
public enum JsonDateTimeSerializationMode
Public Enumeration JsonDateTimeSerializationMode
public enum class JsonDateTimeSerializationMode

Member | Description |
---|---|
Local |
The time represented is local time.
|
Utc |
The time represented is UTC.
|
Unspecified |
The time represented is not specified as either local time or Coordinated Universal Time (UTC).
|
RoundtripKind |
Preserves the DateTimeKind field of a date when a DateTime object is converted to a string and the string is then converted back to a DateTime object.
|