protected $dateFormat = 'm/d/Y H:i:s'; code example
Example: carbon date from format
Carbon::createFromFormat('Y-m-d H:i:s', $request->date)->format('d-m-Y')
Carbon::createFromFormat('Y-m-d H:i:s', $request->date)->format('d-m-Y')