Class DateTimeConverter

Inheritance
System.Object
DateTimeConverter
Namespace: EPiServer.Framework.Serialization.Json
Assembly: EPiServer.Framework.dll
Version: 8.11.0
Syntax
[ServiceConfiguration(typeof(JsonConverter))]
public class DateTimeConverter : IsoDateTimeConverter

Constructors

DateTimeConverter()

Converts a System.DateTime, assumed System.DateTimeKind.Local from the ISO 8601 date format (e.g. 2008-04-12T12:53Z) to comply with current system design.

Declaration
public DateTimeConverter()

Methods

ReadJson(JsonReader, Type, Object, JsonSerializer)

Reads the JSON representation of the object and will set any System.DateTime to

Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
Type Name Description
Newtonsoft.Json.JsonReader reader

The Newtonsoft.Json.JsonReader to read from.

System.Type objectType

Type of the object.

System.Object existingValue

The existing value of object being read.

Newtonsoft.Json.JsonSerializer serializer

The calling serializer.

Returns
Type Description
System.Object

The object value.