I am trying to read dates from .xlsx file. My code looks like this
$reader =
PHPExcel_IOFactory::CreateReaderforFile($name);
$rawData = $reader->load($name);
$sheet = $rawData->getSheet(0);
$lastRow = $rawData->getHighestRow();
$excel_arr = $sheet.toArray(null, true, true, true);
Assume I have date as 01/08/1929 in A2 cell of my excel Am reading it as $excel_arr[2][A] , output am getting is 01-08-29, I want year as four digit, because year in 01-08-29 is getting interpreted as 2029 instead of 1929.
If I have date as 01/08/2029 then also it will be shown as 01-08-29.
Could someone please help