Date insert issue when data upload from excel using maatwebsite/excel in laravel
Date insert issue when data upload from excel using maatwebsite/excel in laravel. Follwing error shows -
Carbon\Exceptions\InvalidFormatException: The separation symbol could not be found in file D:\lara-agentApp\vendor\nesbot\carbon\src\Carbon\Traits\Creator.php on line 690
to make sure again show the dd result from this $row['vessel_arrival_date'] and $row['vessel_departure_date']
and with this toDateTimeString will result the time format like Y-m-d H:i:s
you have the time value in your date excel column ?
and what your vessel_departure_date and vessel_arrival_date data type in database ? date only or datetime ?
seems like the vessel_departure_date and vessel_arrival_date are being read as numeric values (possibly excel date serial numbers) rather than as date strings.