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

        return null;
    }