src/date.js
/**
     * formats a date string with the localised month/day names
     *
     * @param  Date date the actual date to format
     * @param  string format string, e.g. Y-m-d
     *
     * @return string the human readable date string
     */
formats a date string with the localised month/day names
@param  Date date the actual date to format
@param  string format string, e.g. Y-m-d

@return string the human readable date string
formats a date string with the localised month / day names @param Date date the actual date to format @param string format string e . g . Y - m - d @return string the human readable date string
fmt(date, format) {
        return format
            .split("")
            .map(char => dateFn[char] ? dateFn[char](this._date, date) : char)
            .join("")
    }
fmt ( date , format ) { return format . split ( "" ) . map ( char => dateFn [ char ] ? dateFn [ char ] ( this . _date , date ) : char ) . join ( "" ) }
formats a date string with the localised month/day names
 @param  Date date the actual date to format
 @param  string format string, e.g.
formats a date string with the localised month / day names @param Date date the actual date to format @param string format string e . g .