Formatting

Methods

Functions

  • BooleanFormat True, for a non-zero value; False, otherwise.
  • CJustify Returns the given string justified to the center, padding out the words with spaces accordingly
  • DateFormat Formats a date string to a given output
  • DateTimeFormat Formats a date/time string to a given output
  • DecimalFormat Converts a number to a decimal-formatted string.
  • DollarFormat Formats a string in U.S. format. (For other currencies, use LSCurrencyFormat)
  • HTMLCodeFormat Replaces special characters in a string with their HTML-escaped equivalents and inserts and tags at the beginning and end of the string. [version] HTML version to use. currently ignored. -1: The latest implementation of HTML 2.0: HTML 2.0 (Default) 3.2: HTML 3.2
  • HTMLEditFormat Replaces special characters in a string with their HTML-escaped equivalents. [version] HTML version to use. currently ignored. -1: The latest implementation of HTML 2.0: HTML 2.0 (Default) 3.2: HTML 3.2 4.0: HTML 4.0
  • JSStringFormat Escapes special JavaScript characters, such as single quotation mark, double quotation mark, and newline
  • LJustify Left justifies characters in a string of a specified length.
  • LSCurrencyFormat Formats a number in a locale-specific currency format.
  • LSDateFormat Formats a date string to a given output using the current sessions locale
  • LSDateTimeFormat Formats a date string to a given output using the current locale
  • LSEuroCurrencyFormat this funciton is just a alias for lsCurrencyFormat
  • LSIsCurrency Determines whether a string is a valid representation of a currency amount in the current locale.
  • LSNumberFormat Formats a number to the given format mask in the current locale
  • LSTimeFormat Formats a time string to a given output using the current locale.
  • NumberFormat Creates a custom-formatted number value
  • ParagraphFormat Formats the carriage returns in a string to a HTML alternatives
  • RJustify Right justifies characters of a string.
  • SerializeJSON Converts CFML data into a JSON (JavaScript Object Notation) representation of the data.
  • TimeFormat Formats a time string to a given output
  • TrueFalseFormat True, for a non-zero value; False, otherwise.
  • URLEncodedFormat Generates a URL-encoded string. For example, it replaces spaces with %20, and non-alphanumeric characters with equivalent hexadecimal escape sequences. Passes arbitrary strings within a URL.
  • URLSessionFormat Encodes the URL with the CFTOKEN/CFID/JSESSIONID
  • XMLFormat Escapes special XML characters in a string, so that the string is safe to use with XML.
  • YesNoFormat Yes, for a non-zero value; No, otherwise.