format('Y-m-d H:i:s'); } /** * Convert strings into DateTime instances. * * @param string $value The value to convert. * @param Driver $driver The driver instance to convert with. * @return Datetime */ public function toPHP($value, Driver $driver) { if ($value === null) { return null; } $value = DateTime::createFromFormat('Y-m-d H:i:s', $value); return $value; } }