只需要加入下面代码即可
data[$i - 2][$value[1]] = $excel->getActiveSheet()->getCell($letter . $i)->getValue(); $toTimestamp = \PhpOffice\PhpSpreadsheet\Shared\Date::excelToTimestamp($data[$i - 2][$value[1]]); $data[$i - 2][$value[1]] = date("Y-m-d", $toTimestamp )." 00:00:00";