I am trying to import an excel file into my database in PHP. The file contains a column which has time values in the format H:MM. When I try to read this column, I get garbage values like 0.416666666667.
My code goes here :
$data = new Spreadsheet_Excel_Reader();
$data->setOutputEncoding('CP1252');
$data->setUTFEncoder('mb');
$data->read($filePath);
echo $data->sheets[0]['cells'][$i][$j];
Am I missing something? The value in the column is 10:00 but all I get is 0.416666666667.
Please help.