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
It appears your variable is a string, or is expecting a US format date. use 'DateTime::createFromFormat' to cast the date into an actual date format
$date = DateTime::createFromFormat('d/m/y', $value['A']); echo $date->format('Y-m-d');