lib/util-browser.js
function format(date, formatter) {
            if (!formatter) formatter = 'unixSeconds';
            return TableStore.util.date[formatter](TableStore.util.date.from(date));
        }
function format(date, formatter) {
            if (!formatter) formatter = 'unixSeconds';
            return TableStore.util.date[formatter](TableStore.util.date.from(date));
        }
function format ( date , formatter ) { if ( ! formatter ) formatter = 'unixSeconds' ; return TableStore . util . date [ formatter ] ( TableStore . util . date . from ( date ) ) ; }
Given a Date or date-like value, this function formats the
date into a string of the requested value.
@param [String,number,Date] date
@param [String] formatter Valid formats are:
#   * 'iso8601'
#   * 'rfc822'
#   * 'unixSeconds'
#   * 'unixMilliseconds'
@return [String]
Given a Date or date - like value this function formats the date into a string of the requested value .