I know there are a lot of questions similar to this but none of them actually has helped.
I'm having a cell in my excel file that I have to read.

and the format in the excel file is like below 
In my php code I have it in a function that gets the sheet name and cell to read the cell .
$cellDate = $xls->getSheetByName($sheet)->getCell($cell)->getValue();
I've also tried this with getFormattedValue() and got same result
I then get the format with this
$format = $xls->getSheetByName($sheet)->getCell($cell)->getStyle()->getNumberFormat()->getFormatCode();
when I echo this out in PHP it shows the date as
13/4/2015
and for the format it shows
mm-dd-yyyy
where it show as dd-mm-yyyy
I now need to get Y-m-d format of these I've tried using all the available functions in PHPExcel but it's still the result is not correct.
I can't hard code the format because there are multiple cells with multiple formats and I need this to understand by itself
I've tried using
$objPHPExcel->getActiveSheet()
->getStyle('A1')
->getNumberFormat()
->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_DATE_YYYYMMDD2 );
I really need this and I've already wasted 1 week on it.
Is there anyway to tell PHPEXCEL to parse whatever date is in the cell to Y-m-d format ?
UPDATE
As I was reading through the comments I went back and checked the function I wrote, I found that one of the cells [even] that it's formatted in Excel ,it's parsing a wrong format which in that case was a General Format;
I then got the value of getValue() and getFormattedValue() and compared these two if they are not the same that means it's formatted correctly and i can use PHPExcel to get dates from it.
BUT , (There is always a but). Thanks to Microsoft and its excel I'm still not able to differ 1st Feb 2016 and 2nd Of January ! which forever remains the question.
My only recommendation is to never trust excel formats !
Thanks to Microsoft and its excel.... strictly speaking, it isn't Microsoft or Excel at fault here; it's users who have entered dates as string values rather than letting MS Excel use its own internal serialized date/time value - Mark Baker