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.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public enum JsonDateTimeSerializationMode
Public Enumeration JsonDateTimeSerializationMode
public enum class JsonDateTimeSerializationMode
Members
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.
|