src/Common/Service/DateTime.php
public function setDateFormat($sSlug)
    {
        $oDateFormat = $this->getDateFormatBySlug($sSlug);
        if (empty($oDateFormat)) {
            $oDateFormat = $this->getDateFormatDefault();
        }

        $this->sUserFormatDate = $oDateFormat->format;
    }
public function setDateFormat($sSlug)
    {
        $oDateFormat = $this->getDateFormatBySlug($sSlug);
        if (empty($oDateFormat)) {
            $oDateFormat = $this->getDateFormatDefault();
        }

        $this->sUserFormatDate = $oDateFormat->format;
    }
public function setDateFormat ( $ sSlug ) { $ oDateFormat = $ this -> getDateFormatBySlug ( $ sSlug ) ; if ( empty ( $ oDateFormat ) ) { $ oDateFormat = $ this -> getDateFormatDefault ( ) ; } $ this -> sUserFormatDate = $ oDateFormat -> format ; }
Set the date format to use, uses default if slug cannot be found

@param string $sSlug The date format's slug
Set the date format to use uses default if slug cannot be found