Macromedia ColdFusion 5 Training from the Source (With CD-ROM)
| I l @ ve RuBoard |
| Used to format a data value for display. Syntax
Dateformat(date_to_format, "way to format") Parameters
The dateformat must have a date value and a mask of how you want the date formatted. Some example masks are below. Mm/dd/yy: 12/11/76 Dddd, mmmm dd, yyyy: Tuesday, December 11, 1976 Ddd mmm, dd, yyyy: Tue. Dec. 11, 1976 Example
<!--- format today's date ---> <cfoutput> #dateformat(Now(), "ddd, mmm, yyyy")# </cfoutput> |
| I l @ ve RuBoard |