I just tried this code, and it seemed to work...

<cfset time = "4:00 pm">

<cfset test = createOdbcTime(time)>

<cfoutput>#test#</cfoutput><br>

^^This returned {t '16:00:00'}

<cfset time = "4:00 am">

<cfset test = createOdbcTime(time)>

<cfoutput>#test#</cfoutput>

^^ This returned {t '04:00:00'} 

Hopefully I didn't misuderstand what you were trying to do....

-Patti

>Hey all,
>
>I'm trying to parse an hour, minute, and meridian entered on a webform
>as time.
>
>So...three combo boxes. One from 00 to 12 , the other from 0 to 55..and
>then the last with AM|PM.
[snip]
>Somehow though..this just seems so very inelegant. And I'm wondering if
>I am doing something completely wrong...or if anyone knows a better way
>to do it.
>
>-Angel
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to