public function getFormat(string $dateLength): string
    {
        // Oops, unknown length of date
        if (false === (new DateLength())->isCorrectType($dateLength)) {
            throw UnknownDateLengthException::createException($dateLength);
        }

        $format = '';

        switch ($dateLength) {
            case DateLength::DATE:
                $format = $this->dateFormat;

                break;
            case DateLength::DATETIME:
                $format = $this->dateTimeFormat;

                break;
            case DateLength::TIME:
                $format = $this->timeFormat;

                break;
        }

        return $format;
    }