public function transform($value)
    {
        $parts = array(
            'date' => null,
            'time' => null,
        );
        if ( $value ) {
            $parts['date'] = new \DateTime($value->format('Y-m-d'));
            $parts['time'] = new \DateTime($value->format('H:i:s'));
        }
        return $parts;
    }