hi to all! i don't know if someone already posted this topic. sorry if that's the case.
i'm encountering somehow a problem with the return value of the PHPExcel_Cell_DataType dataTypeForvalue().
i parsed a cell which is in date format but the function returns general.
somehow i think there's a problem with this function. anyone know why is this happening?
here's the part of my code:
$reader = new PHPExcel_IOFactory::createReader('Excel5'); //my file is in excel 2003 so i used excel 5
$obj = $reader->('myexcel.xls'); //my file
$type = new PHPExcel_Cell_DataType();
$data = $type->dataTypeForValue($obj->getActiveSheet()->getCellByColumnAndRow(1,0)->getValue()); //gets the data format from the excel