diff --git a/src/formats/DateFormat.php b/src/formats/DateFormat.php index d13bf86..0ec27e5 100644 --- a/src/formats/DateFormat.php +++ b/src/formats/DateFormat.php @@ -12,6 +12,6 @@ class DateFormat extends BaseFormat */ static function fetch(?string $data, string $options = ""): ?string { - return (new DateTimeImmutable($data))->format($options) ?? null; + return (new DateTimeImmutable($data ?? ""))->format($options) ?? null; } } \ No newline at end of file