src/Graviton/DocumentBundle/Serializer/Handler/DateHandler.php
public function deserializeDateTimeFromJson(JsonDeserializationVisitor $visitor, $data, array $type)
    {
        if (null === $data) {
            return null;
        }

        return parent::deserializeDateTimeFromJson(
            $visitor,
            $this->dateConverter->getDateTimeStringInFormat($data),
            $type
        );
    }
public function deserializeDateTimeFromJson(JsonDeserializationVisitor $visitor, $data, array $type)
    {
        if (null === $data) {
            return null;
        }

        return parent::deserializeDateTimeFromJson(
            $visitor,
            $this->dateConverter->getDateTimeStringInFormat($data),
            $type
        );
    }
public function deserializeDateTimeFromJson ( JsonDeserializationVisitor $ visitor , $ data , array $ type ) { if ( null === $ data ) { return null ; } return parent :: deserializeDateTimeFromJson ( $ visitor , $ this -> dateConverter -> getDateTimeStringInFormat ( $ data ) , $ type ) ; }
serialize datetime from json

@param JsonDeserializationVisitor $visitor visitor
@param string                     $data    data
@param array                      $type    type

@return \DateTime|null DateTime instance
serialize datetime from json