According to the docs:
"IsDate checks only the U.S. date format. For other date support, see LSDateFormat. "

However, the code below returns "YES" in both cases:

<CFOUTPUT>
isDate("05/25/2003") = #isDate("05/25/2003")#
<BR>isDate("25/05/2003") = #isDate("25/05/2003")#
</CFOUTPUT>

The first date is correct, but again, and contrarily to the specs, CF is guessing that 
"25/05/2003"
although not a valid American date, might be a valid European date after all.

Both in CF 5 and CFMX :-(

Please MM stop that random and guessing behaviour in CF, we are trying to write proper 
code,
we don't run a casino!
If we want to check a date in American format, we don't give a dam it could eventually 
be a correct date
if we had intended to enter an European date.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137788
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

Reply via email to