$value]); Log::debug('Format: ', ['format' => $this->config['date-format']]); try { $date = Carbon::createFromFormat($this->config['date-format'], $value); } catch (InvalidArgumentException $e) { Log::notice($e->getMessage()); Log::notice('Cannot convert this string using the given format.', ['value' => $value, 'format' => $this->config['date-format']]); $this->setCertainty(0); return new Carbon; } Log::debug('Converted date', ['converted' => $date->toAtomString()]); $this->setCertainty(100); return $date; } }