src/ICal/ICal.php
public function isValidDate($value)
    {
        if (!$value) {
            return false;
        }

        try {
            new \DateTime($value);

            return true;
        } catch (\Exception $e) {
            return false;
        }
    }
public function isValidDate($value)
    {
        if (!$value) {
            return false;
        }

        try {
            new \DateTime($value);

            return true;
        } catch (\Exception $e) {
            return false;
        }
    }
public function isValidDate ( $ value ) { if ( ! $ value ) { return false ; } try { new \ DateTime ( $ value ) ; return true ; } catch ( \ Exception $ e ) { return false ; } }
Checks if a date string is a valid date

@param  string $value
@return boolean
@throws \Exception
Checks if a date string is a valid date