Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting character 3:45 PM to 15 and 45 numeric
Message
 
To
07/02/2008 16:56:16
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01290609
Message ID:
01290614
Views:
9
This message has been marked as the solution to the initial question of the thread.
> I want to get the 24-hour equivalent numeric values for the hours and minutes.

You may need to wrap it in a TRY..CATCH, but this should work for you:
cTime = "03:45pm"
?HOUR(CTOT("1/1/01 "+cTime))
?MINUTE(CTOT("1/1/01 "+cTime))
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform