i am reading date from excel which is in this format 12/5/2012 day/month/year using this code to read . using PHP EXCEL
PHPExcel_Style_NumberFormat::t
When using PHPExcel you can use the built in function:
$excelDate = $cell->getValue(); // gives you a number like 44444, which is days since 1900 $stringDate = \PHPExcel_Style_NumberFormat::toFormattedString($excelDate, 'YYYY-MM-DD');