I'm reading date with PHPExcel_Shared_Date::ExcelToPHPObject but issue is that when empty cell found in Excel it set current date for that instead of empty string.

I am writing below code of line to read date or empty string from excel.

$AnniversarydateTimeObject = PHPExcel_Shared_Date::ExcelToPHPObject($sheet->getCell('AK' . $row)->getValue()); 

I expect that when value gets found then only it should push to mysql else empty string shall push.

0 Answers