get datetime of excel cell in codeigniter

$this->load->library('excel'); $objPHPExcel = PHPExcel_IOFactory::load('path_to_excel_file'); $cellValue = $objPHPExcel->getActiveSheet()->getCell('A1')->getValue(); $dateTimeObject = PHPExcel_Shared_Date::ExcelToPHPObject($cellValue); $dateTimeString = $dateTimeObject->format('Y-m-d H:i:s');