关于phpexcel 获取日期格式得到一串数字的处理方法

1:2019-7-6  得到的值是43652

2:\PHPExcel_Shared_Date::ExcelToPHP($inout_time) 得到时间戳

$inout_time = $sheet->getCell('C' . $j)->getValue();
$a = \PHPExcel_Shared_Date::ExcelToPHP($inout_time);
$date = date('Y-m-d',$a);

3:date转换

4:结果

猜你喜欢

转载自blog.csdn.net/qq_38526952/article/details/97390057