eZ\Publish\Core\FieldType\DateAndTime\Value::__toString PHP Method

__toString() public method

See also: eZ\Publish\Core\FieldType\Value
public __toString ( )
    public function __toString()
    {
        if (!$this->value instanceof DateTime) {
            return '';
        }
        return $this->value->format($this->stringFormat);
    }