Use the createtime(hh,mm,ss) function so that CF creates a proper time variable.
so <cfset start_time = createtime(form.start_hrs,form.start_mins, form.start_secs)> <cfset end_time = createtime(form.end_hrs,form.end_mins,form.end_secs)> you can then use any if the date/time functions on these variables. HTH Mike On 1/9/06, Love Sponge <[EMAIL PROTECTED]> wrote: > > I am developing a form where the user selects a start and end time from a > drop down box. the goal is to use both times to calcualte the logon > duration. Can anyone tell me what is the best way to go about representing > these time in order to use them for calculation. > > Thanks > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228872 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

