lib/Ext/DateExtras.js
function(date, format) {
        if (utilDate.formatFunctions[format] == null) {
            utilDate.createFormat(format);
        }
        var result = utilDate.formatFunctions[format].call(date);
        return result + '';
    }
function(date, format) {
        if (utilDate.formatFunctions[format] == null) {
            utilDate.createFormat(format);
        }
        var result = utilDate.formatFunctions[format].call(date);
        return result + '';
    }
Formats a date given the supplied format string.
@param {Date} date The date to format.
@param {String} format The format string.
@return {String} The formatted date.