function fmt(value, format) {
	let formatObj = getFormatObjectFromString(format);
	let valueType = inferValueType(value);
	formatObj.valueType = valueType;
	return formatValue(value, formatObj);
}
Formats a value to whichever format is passed in
@param {*} value the value to be formatted
@param {string} format string containing an Excel-style format code, or a format name matching a built-in or custom format
@returns a formatted value