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. Quote 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) Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.