Link to home
Start Free TrialLog in
Avatar of linbayzak
linbayzakFlag for United States of America

asked on

convert 12 hr am/pm time to just hhmm in mysql

Hi Experts,

I'm using Scriptcase and in the onvalidate event, i want to format what the user entered as HH:MM (am/pm) to just bring in the military time, but i don't want it to show the colon, so if it is entered as 12:15 PM i would like it to convert to 1215

How can i do this?

I have this
{FormatTime}= Time_Format({ApptTime},hhii);

Is this the correct way?
Thanks :-)

Laura
SOLUTION
Avatar of Kevin Cross
Kevin Cross
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of linbayzak

ASKER

Thanks so much.  I really appreciate the help.  Both will work, but mwvisa1's solutions takes into account the am/pm factor.

have a great day :-)