I don't really see the problem here.

isNumeric() - Determines whether a string can be converted to a numeric
value. Supports numbers in U.S. number format.

isNumericDate() - Evaluates the "real value" of a date/time object.

With that in mind...

"05/25/2003" is NOT a number.

"05/25/2003" IS a valid date. It's a numeric date.

"May 25th, 2003" is a valid date, but not a valid NUMERIC date.

-Novak

----- Original Message ----- 
From: "Claude Schneegans" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 9:44 PM
Subject: Re: dates nightmare II


> You want even more stupid?
>
> Here it is:
>
> "isNumeric (string) Returns TRUE if string can be converted to a number;
otherwise, FALSE. "
>
> Then for instance isnumeric("05/25/2003") returns "NO", of course, since
"05/25/2003" is not a number,
> it is a string and it cannot be converted to a number.
>
> Fine,... But then how come isnumericDate("05/25/2003") returns "YES" ?
> How come "05/25/2003" can be a numeric date if is is not numeric???
>
> OK. I suppose CF tried again to guess and converted "05/25/2003" to a date
first?
> But according to the docs, the function IsNumericDate(number) expects a
number, not a date,
> so why didn't CF try to convert the parameter to a number instead of a
date?
> If it had done so, it would have find that "05/25/2003" cannot be
converted to a number,
> therefore isnumeric("05/25/2003") should be "NO".
>
> You want more?
> here is more:
>
> isnumericDate(now()) = YES
> isnumeric(now()) = NO
>
> So a date is a numeric date value, but it is not numeric ???
>
> Now PLEEEEEASE Macromedia, could you pay your programers some kind of
"date 101"
> elementary course and correct all these kind of gross errors?
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137795
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

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Reply via email to