hi,
My form asks for the time in the format hh? mm? am/pm?
However before I combine it all into one value (so I can insert it into my
MySQL table) I would like to change the format to military time. I thought I
could simply add 12 to the "hh" value when "am/pm" is pm, which works fine
except for 12:00AM.
So I wrote:
if ((($ampm eq 'PM')&&($hh != 12))||(($hh == 12) && ($ampm eq 'AM'))){$hh =
$hh + 12;}
This seems to work but there must be a standard (prettier way:) to acomplish
the same. Or is that fine?
Thanks,
Mariusz
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- Re: 24 hour time issue mario kulka
- Re: 24 hour time issue Rob Dixon
- Re: 24 hour time issue david
- RE: 24 hour time issue Bob Showalter