Search/AbstractSearch.php
public function parseDate($string)
    {
        try {
            return new \DateTime($string);
        } catch (ParsingException $ex) {
            $exception = new ParsingException('The date is '
                      . 'not parsable', 0, $ex);
            throw $exception;
        }
        
    }
public function parseDate($string)
    {
        try {
            return new \DateTime($string);
        } catch (ParsingException $ex) {
            $exception = new ParsingException('The date is '
                      . 'not parsable', 0, $ex);
            throw $exception;
        }
        
    }
public function parseDate ( $ string ) { try { return new \ DateTime ( $ string ) ; } catch ( ParsingException $ ex ) { $ exception = new ParsingException ( 'The date is ' . 'not parsable' , 0 , $ ex ) ; throw $ exception ; } }
parse string expected to be a date and transform to a DateTime object

@param type $string
@return \DateTime
@throws ParsingException if the  date is not parseable
parse string expected to be a date and transform to a DateTime object