>>isNumericDate() - Evaluates the "real value" of a date/time object.
I know this phrase comes from the docs, but it just does not make sense, which
"date/time object"
are we talking about? IsNumericDate(number) expects a number and returns a boolean,
there is no date
object involved here. The rest of the docs makes a little more clear:
"Returns TRUE if the number represents "real value" of the date/time object;
otherwise, FALSE. "
should actually read:
"Returns TRUE if the number represents *a valid* "real value" *for a* date/time
object; otherwise, FALSE. "
My point is that if CF is to automatically convert (ie. cast) parameters to the type
expected by a
function, it should do it in a coherent way.
If isNumericDate expects a number, in isnumericDate("05/25/2003"), CF should first try
to convert
"05/25/2003" to a number, not a date. But according to inumeric("05/25/2003") = "NO",
this string cannot be
converted to a number, then isnumericDate("05/25/2003") should return "NO", not "YES".
Another incohence? Everybody knows that Now() returns today's date, and Now()+1
calculates
tomorrow's date... BUT
isnumeric(now()) = NO
isnumeric(now()+1) = YES
So today is not numeric, but there is hope: tomorrow will be! ;-)))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137799
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
http://www.cfhosting.com