hi

i am using the isvalid and timeformat functions as follows:

<cfset newTime = "12:00">
<cfif isvalid("time", newTime)>
  <cfoutput>#timeformat(newTime,'HH:mm:ss')#</cfoutput>
<cfelse>
  <cfoutput>invalid time</cfoutput>
</cfif>

this example works fine and outputs the correct time "12:00:00"

however if i change the newTime to: 
<cfset newTime = "12,00">
.... it passes the isvalid time function but then formats the time to 
"00:00:00".

i would like it to detect a comma as an error in the isvalid("time") function. 
is there any way to do this, and why is a comma allowed?

thanks for your help

richard



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

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317295
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