> This only shows that <CFOUTPUT formats a date-time object as 
> an ODBC dateTime stamp by default, not that Now() returns it.

CFOUTPUT doesn't format anything. It outputs values of expressions.

> If it was so, then Now()  + 1 would cause an error, since one 
> cannot add a number to a string.
> Try <cfoutput>#Now()+1#</cfoutput>
> and you'll get a number, not an ODBC date. This is because 
> Now() is known as a date object, thus may be formated as a 
> date, but Now()+1 is just a number, and formated as such by 
> CFOUTPUT.

CF casts datatypes when necessary in an expression. I don't see how this is
any different from any other casting in CF.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

This email has been processed by SmoothZap - www.smoothwall.net


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279629
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to