Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting time
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00411789
Message ID:
00411832
Views:
10
>I have a time field that is a character field.
>It is length 6 and in the format hhmmss.
>The problem is that it is in military time and I need it in standard time,, so 133245 would need to be 013245.
>I am not sure how to convert it.
>Thanks for any help,
>Ryan

set hours to 12
lcTime = '133245'
? StrTran(Left(Right(ttoc(ctot('^2000/1/1 ' + trans(lcTime, "@R 99:99:99"))), 11), 8), ":", "")
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Reply
Map
View

Click here to load this message in the networking platform