Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Military Time
Message
 
To
01/08/2007 15:37:55
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01245247
Message ID:
01245255
Views:
24
>How can I convert the following to non-military time? And yes, before the jokes start, the "13:45" is a value in an array. I can't just retype it to "1:45" instead. Thanks!
>
>
>(RIGHT( "0" + ALLTRIM( "13:45" ), 5 ))
>
lctime  = "13:45"
? IIF(VAL(lctime)>11,TRANSFORM(VAL(lctime)-12)+RIGHT(lctime,3)+[ PM],lctime+[ AM])
lctime  = "11:45"
? IIF(VAL(lctime)>11,TRANSFORM(VAL(lctime)-12)+RIGHT(lctime,3)+[ PM],lctime+[ AM])
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Previous
Reply
Map
View

Click here to load this message in the networking platform