assuming: <cfset myHour = 3 /> <cfset myMin = 4 /> <cfset myAMPM = "PM" />
<cfif myAMPM = "PM"> <cfset myHour = myHour + 12 /> </cfif> <cfset myMilitaryTime = createTime(myHour, myMin, 0) /> 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 > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209156 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