public function setDateTime(string $key, $value, string $format, string $ignoredDefaultValue = null)
    {
        if ($value instanceof DateTime) {
            $this->set($key, $value->format($format), $ignoredDefaultValue);
        }
        return $this;
    }