    public static function isDate($date, $format = 'Y-m-d')
    {
        $formattedDate = self::format($date, $format);
        return $formattedDate == $date;
    }