bobbychla Posted August 27, 2011 Share Posted August 27, 2011 while I'm reading the cell value '20/09/1980' from an excel file using phpexcel class method $student[$i]['d_o_b'] = $objWorksheet->getCell('G' . $intRow)->getValue(); getting the value as '29484' pls help me to convert it into the date format again. Link to comment https://forums.phpfreaks.com/topic/245810-convert-it-into-the-date-format/ Share on other sites More sharing options...
php_begins Posted August 27, 2011 Share Posted August 27, 2011 I am not sure how populating it from the excel sheet works. try this: date("m/d/y",$YOURDATEVARIABLE) Link to comment https://forums.phpfreaks.com/topic/245810-convert-it-into-the-date-format/#findComment-1262591 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.