public static function convertSolrDateToPhpDateTime($solrDate)
    {
        $solrDate = trim($solrDate);
        $dateTime = DateTime::createFromFormat(Manager::SOLR_DATE_FORMAT, $solrDate);
        $valid = $dateTime && ($dateTime->format(Manager::SOLR_DATE_FORMAT) === $solrDate);
        
        if (!$valid) {
            throw new \InvalidArgumentException(sprintf('invalid format of Solr date passed: "%s"', $solrDate));
        }
        
        return $dateTime;
    }
public static function convertSolrDateToPhpDateTime($solrDate)
    {
        $solrDate = trim($solrDate);
        $dateTime = DateTime::createFromFormat(Manager::SOLR_DATE_FORMAT, $solrDate);
        $valid = $dateTime && ($dateTime->format(Manager::SOLR_DATE_FORMAT) === $solrDate);
        
        if (!$valid) {
            throw new \InvalidArgumentException(sprintf('invalid format of Solr date passed: "%s"', $solrDate));
        }
        
        return $dateTime;
    }
public static function convertSolrDateToPhpDateTime ( $ solrDate ) { $ solrDate = trim ( $ solrDate ) ; $ dateTime = DateTime :: createFromFormat ( Manager :: SOLR_DATE_FORMAT , $ solrDate ) ; $ valid = $ dateTime && ( $ dateTime -> format ( Manager :: SOLR_DATE_FORMAT ) === $ solrDate ) ; if ( ! $ valid ) { throw new \ InvalidArgumentException ( sprintf ( 'invalid format of Solr date passed: "%s"' , $ solrDate ) ) ; } return $ dateTime ; }
Convert Solr date into a PHP DateTime object

@param string $solrDate
@return DateTime
Convert Solr date into a PHP DateTime object