format('Y-m-d'); } /** * 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; } return DateTime::createFromFormat('Y-m-d', $value); } }