Reading xls Date Values with php excel reader -


i using phpexcel read date cells in excel file have values 'mar-13' returning integer values '41791'. please, need make sure date reads in correctly?

excel stores dates serialized timestamps (number of days since 1/1/1900), can convert unix timestamp , format standard php date functions

$unix_timestamp = ($cell_value - 25569) * 86400; $phpdate = date("m-d-y", $unix_timestamp); 

Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -