I can't believe that I have not run up against this before with isDate()...
I dynamically generate a form where I don't know the data type until run time.
My only requirement is to format any dates.

I was doing a simple <cfif isDate(myDate)> then formatting it, until I realized 
that this string (09-262) was formatting as a date. It happens to be a cubicle 
number

I know that isDate will pretty much return TRUE on any darned thing. Actually, 
most any date function will execute without failure on the above value.

So the question is...
How are you all validating dates reliably? I've checked cflib.org for something 
with no luck. Google doesn't return much. I'm adding a year range check to my 
code for now, which works, but doesn't seem too elegant.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

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

Reply via email to