Display and Formatting Functions

Display and formatting functions are some of the most commonly used functions in the bunch. Like DollarFormat() (discussed earlier today), display and formatting functions convert the contents of a variable to specified format.

Display and formatting functions are often used to standardize a user's form input so that it matches the format of other data in a database or display. They can also help you deal with a client's database in which dollar values or dates are listed a certain way that is different than the variable with which you want to match them.

DateFormat()

Usage: DateFormat(date, mask)

DateFormat() enables you to specify the way a variable containing a date is displayed. It accepts two parameters: ...

Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.