<?php $val = DateTime::createFromFormat($platform->getDateTimeFormatString(), $value); if ($val === false) { $val = date_create($value); } if ($val === false) {
<?php return $value; } $val = date_create($value); if ($val === false) { throw ConversionException::conversionFailed($value, $this->getName()); }