strong text nclude '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);
put the date in excel sheet like 8/28/1980
, but i am got the date like this 08-28-80
, i need to get the value like this 1980-08-28
.
please help me !!