code/libraries/joomlatools/library/date/date.php
public function format($format)
    {
        $format = preg_replace_callback('/(?<!\\\\)[DlFM]/', array($this, '_translate'), $format);
        return $this->_date->format($format);
    }
public function format($format)
    {
        $format = preg_replace_callback('/(?<!\\\\)[DlFM]/', array($this, '_translate'), $format);
        return $this->_date->format($format);
    }
public function format ( $ format ) { $ format = preg_replace_callback ( '/(?<!\\\\)[DlFM]/' , array ( $ this , '_translate' ) , $ format ) ; return $ this -> _date -> format ( $ format ) ; }
Returns the date formatted according to given format.

@param  string $format The format to use
@return string The formatted date
Returns the date formatted according to given format .