PHP Import Date Type Cell Problem from Excel File

If you import a date type cell from Excel file in PHP, such as 2014-10-30, you probrablly get integer value like 41942. The solution is the following:
echo date($format,strtotime('1899-12-31+'.(41942-1).' days')); 2014-10-30

Comments

Popular posts from this blog

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader.