Json.NET - Quick Starts & API Documentation
DateParseHandling Enumeration
Namespaces ► Newtonsoft.Json ► DateParseHandling
Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public enum DateParseHandling
Public Enumeration DateParseHandling
public enum class DateParseHandling
Members
Member | Description |
---|---|
None |
Date formatted strings are not parsed to a date type and are read as strings.
|
DateTime |
Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to DateTime.
|
DateTimeOffset |
Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to DateTimeOffset.
|