强文本 包括“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表格中8/28/1980
,但是我得到了这样的日期08-28-80
,我需要得到这样的值1980-08-28
。
请帮我 !!