I am trying to get Date from excel using PHPExcel. But I am not getting date, I am getting string value which is not seconds from 1970 .
Code I have tried is
$cell = $excel->getActiveSheet()->getCell('B' . $i); $InvDate= $cell->getValue(); $InvDate= PHPExcel_Shared_Date::ExcelToPHPObject($InvDate)->format('Y-m-d H:i:s');
Try this