Answers for "Could not parse '25/07/2020 06:07': DateTime::__construct(): Failed to parse time string (25/07/2020 06:07) at position 0 (2): Unexpected character"

0

Could not parse '25/07/2020 06:07': DateTime::__construct(): Failed to parse time string (25/07/2020 06:07) at position 0 (2): Unexpected character

laravel update updated_at when seconds are not available use :
Carbon::createFromFormat()

Example :
$request->filled('order_date') ?
	Carbon::createFromFormat('d/m/Y H:i', $request->get('order_date')) : null,
Posted by: Guest on August-01-2020

Code answers related to "Could not parse '25/07/2020 06:07': DateTime::__construct(): Failed to parse time string (25/07/2020 06:07) at position 0 (2): Unexpected character"

Browse Popular Code Answers by Language