PhpSpreadsheet解决excel时间导入需要转换问题

      发布在:后端技术      评论:0 条评论
//                    $val = $currentSheet->getCellByColumnAndRow($currentColumn, $currentRow)->getValue();
//                    可以解决EXCEL时间问题
                   $val = $currentSheet->getCellByColumnAndRow($currentColumn, $currentRow)->getFormattedValue();

getFormattedValue获取的 就是展示的效果

相关文章
热门推荐