src/Common/Service/DateTime.php
public function getAllDateFormat()
    {
        $aFormats = static::FORMAT_DATE;
        $oNow     = Factory::factory('DateTime');
        foreach ($aFormats as &$aFormat) {
            $aFormat          = (object) $aFormat;
            $aFormat->example = $oNow->format($aFormat->format);
        }
        return $aFormats;
    }
public function getAllDateFormat()
    {
        $aFormats = static::FORMAT_DATE;
        $oNow     = Factory::factory('DateTime');
        foreach ($aFormats as &$aFormat) {
            $aFormat          = (object) $aFormat;
            $aFormat->example = $oNow->format($aFormat->format);
        }
        return $aFormats;
    }
public function getAllDateFormat ( ) { $ aFormats = static :: FORMAT_DATE ; $ oNow = Factory :: factory ( 'DateTime' ) ; foreach ( $ aFormats as & $ aFormat ) { $ aFormat = ( object ) $ aFormat ; $ aFormat -> example = $ oNow -> format ( $ aFormat -> format ) ; } return $ aFormats ; }
Returns all the defined date format objects

@return array
Returns all the defined date format objects