Using UDFs


You can use a UDF in all the same places you'd use a built-in function. The following code displays today's and tomorrow's dates using a mixture of built-in functions and UDFs (the function we created previously):

 <cfoutput> Today is: #DateFormat(Now())#<br> Tomorrow is: #DateFormat(Tomorrow())#<br> </cfoutput> 



Macromedia ColdFusion MX 7 Certified Developer Study Guide
Macromedia ColdFusion MX 7 Certified Developer Study Guide
ISBN: 0321330110
EAN: 2147483647
Year: 2004
Pages: 389
Authors: Ben Forta

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