src/Common/Service/DateTime.php
public function getDateFormatBySlug($sSlug)
    {
        $aFormats = $this->getAllDateFormat();
        foreach ($aFormats as $oFormat) {
            if ($oFormat->slug === $sSlug) {
                return $oFormat;
            }
        }

        return null;
    }
public function getDateFormatBySlug($sSlug)
    {
        $aFormats = $this->getAllDateFormat();
        foreach ($aFormats as $oFormat) {
            if ($oFormat->slug === $sSlug) {
                return $oFormat;
            }
        }

        return null;
    }
public function getDateFormatBySlug ( $ sSlug ) { $ aFormats = $ this -> getAllDateFormat ( ) ; foreach ( $ aFormats as $ oFormat ) { if ( $ oFormat -> slug === $ sSlug ) { return $ oFormat ; } } return null ; }
Looks for a date format by it's slug

@param string $sSlug The slug to search for

@return \stdClass|null
Looks for a date format by it s slug