protected function getDateTime($value)
    {
        try {
            if ($this->isTestingRelativeDateTime($value)) {
                return Date::parse($value);
            }

            return new DateTime($value);
        } catch (Exception $e) {
            //
        }
    }
protected function getDateTime($value)
    {
        try {
            if ($this->isTestingRelativeDateTime($value)) {
                return Date::parse($value);
            }

            return new DateTime($value);
        } catch (Exception $e) {
            //
        }
    }
protected function getDateTime ( $ value ) { try { if ( $ this -> isTestingRelativeDateTime ( $ value ) ) { return Date :: parse ( $ value ) ; } return new DateTime ( $ value ) ; } catch ( Exception $ e ) { // } }
Get a DateTime instance from a string with no format.

@param  string $value
@return \DateTime|null
Get a DateTime instance from a string with no format .