初等日期格式化调试5

master
zcstatham 2 years ago
parent de37496279
commit 9b7eff6d89
  1. 1
      extend/service/CarInfoHandle.php

@ -491,6 +491,7 @@ class CarInfoHandle
$register_date = $worksheet->getCellByColumnAndRow(2, $row)->getValue();
if (is_numeric($register_date))
$register_date = \PhpOffice\PhpSpreadsheet\Shared\Date::excelToTimestamp($register_date);
Log::record($register_date);
$row_array[] = [
'duty_no' => trim(trim($worksheet->getCellByColumnAndRow(1, $row)->getValue(), '"')),
'register_date' => date('Y-m-d', strtotime(trim(trim($register_date, '"')))),

Loading…
Cancel
Save