DATEFORMAT

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


Macromedia ColdFusion 5. Training from the Source
Macromedia ColdFusion 5 Training from the Source (With CD-ROM)
ISBN: 0201758474
EAN: 2147483647
Year: 2002
Pages: 99
Authors: Kevin Schmidt

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net