>>CF casts datatypes when necessary in an expression. I don't see how
this is
any different from any other casting in CF.
This is what I meant.
<CFOUTPUT cannot output anything else than a string, then the expression
between #...# must be converted to a string before it can be processed.
Since Now() is not a string, but a date object, it is converted to a
string, ie. in this occurrence, an ODBCDate.
In the case of #now()+1#, now() is first casted to a number so that 1
can be added, then the result is casted to a string, but as a number,
not as a date.
Just read the docs: Now() Returns A date/time object,.
And about the IsNumericDate() function:
"ColdFusion, by default, evaluates any input parameter and attempts to
convert it to a real number before it passes the parameter to the
IsNumericDate function. As a result, parameter values such as 12/12/03
and {ts '2003-01-14 10:04:13'} return True, because ColdFusion converts
valid date string formats to date/time objects, which are real numbers."
Thus Now() returns a date/time object, ie. a real number, not an
ODBCDate string.
QED ;-)
--
_______________________________________
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279638
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4