Posts

Showing posts from March, 2022

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