Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

converting time into 24hr

Quote Reply
converting time into 24hr
hi

if I've got a form passing in the following variables...

Hours.... 1-12
Minutes... 0-55
AM or PM

So as a result I may end up with...

01 25 PM

What I want to do is convert that into 24 hour format if PM is selected as apposed to am. So my question is, how do I convert this to 24 hour format (without adding 13,14 etc to the form)?

01:25:00

thanks

regan
Subject Author Views Date
Thread converting time into 24hr ryel01 2809 Aug 12, 2004, 11:19 PM
Thread Re: [ryel01] converting time into 24hr
Andy 2755 Aug 13, 2004, 12:14 AM
Thread Re: [Andy] converting time into 24hr
ryel01 2748 Aug 13, 2004, 12:26 AM
Thread Re: [ryel01] converting time into 24hr
Andy 2739 Aug 13, 2004, 12:33 AM
Post Re: [Andy] converting time into 24hr
ryel01 2717 Aug 13, 2004, 1:03 AM
Thread Re: [ryel01] converting time into 24hr
Andy 2763 Aug 13, 2004, 1:10 AM
Thread Re: [Andy] converting time into 24hr
ryel01 2709 Aug 13, 2004, 1:40 AM
Post Re: [ryel01] converting time into 24hr
Andy 2714 Aug 13, 2004, 1:51 AM
Thread Re: [ryel01] converting time into 24hr
afinlr 2708 Aug 13, 2004, 8:43 AM
Post Re: [afinlr] converting time into 24hr
anup123 2704 Aug 13, 2004, 8:54 AM