Код: Выделить всё
include 'PHPExcel/IOFactory.php';
// This is the file path to be uploaded.
$inputFileName = 'admin/' . $_SESSION['file_name'];
try {
$objPHPExcel = PHPExcel_IOFactory::load($inputFileName);
} catch (Exception $e) {
die('Error loading file "' . pathinfo($inputFileName, PATHINFO_BASENAME) . '": ' . $e->getMessage());
}
$allDataInSheet = $objPHPExcel->getActiveSheet()->toArray(null, true, true, true);
Код поместит дату в лист Excel в следующем формате: 28.08.1980.
Однако вместо этого я хочу получить: 1980-08-28.>
Подробнее здесь: https://stackoverflow.com/questions/374 ... m-d-format