I have obtained the value of my cell, with the following line:
date = $objPHPExcel->getActiveSheet()->getCell('U11')->getFormattedValue();
Since the cell stores a date, I had to use the method getFormattedValue()
, because if used getCalculatedValue()
returned a date type float.
My problem is that the data returned as a date is: 07-01-15, when in fact, the data that has excel in this column is: 01-07-2015
I have way to change the way returns that date?
Thanks!