src/Gzero/Core/Parsers/DateParser.php
protected function checkValue(): void
    {
        if ((!is_string($this->value) && !is_numeric($this->value)) || strtotime($this->value) === false) {
            throw new InvalidArgumentException('DateParser: Value must be a valid date');
        }
    }
protected function checkValue(): void
    {
        if ((!is_string($this->value) && !is_numeric($this->value)) || strtotime($this->value) === false) {
            throw new InvalidArgumentException('DateParser: Value must be a valid date');
        }
    }
protected function checkValue ( ) : void { if ( ( ! is_string ( $ this -> value ) && ! is_numeric ( $ this -> value ) ) || strtotime ( $ this -> value ) === false ) { throw new InvalidArgumentException ( 'DateParser: Value must be a valid date' ) ; } }
Check if value is a valid date.

@throws InvalidArgumentException

@return void
Check if value is a valid date .