I'm using PHPExcel library, I extract the content of a column cell, that cell has a date, in excel it is displayed as "30/07/2014" but when I extract it using the library it dispalyes : 41850 as date value, I can't rely on the excel formatting cells because each time I get a different file with date so my question is , is there a way to convert the value 41850 using the library to the original date text 30/07/2014?
The code I'm using is :
$inputFileType = PHPExcel_IOFactory::identify($inputFileName);
$objReader = PHPExcel_IOFactory::createReader($inputFileType);
$objReader->setReadDataOnly(true);
$objPHPExcel = $objReader->load($inputFileName);
$outPut = $objPHPExcel->getSheet(0)->getCellByColumnAndRow(6, 6)->getFormattedValue();
echo $outPut;//41850