if (am_pm EQ "am" AND hour EQ 12) hour = 0; else if (am_pm EQ "pm" AND hour NEQ 12) hour = hour + 12;
militaryTime = hour & minute; cheers, barneyb On 6/9/05, Jeremy Bunton <[EMAIL PROTECTED]> wrote: > I have a form that collects 3 pieces of time data each as separate form > vars. Hour, min and AM/PM in the format of 03 04 PM. I need to convert that > to military time so here 15:04. I have looked at createtime() but it seems > to not have a way to handle the AM/PM data. How do you all handle this? > > Jeremy > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209154 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54