Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting character 3:45 PM to 15 and 45 numeric
Message
From
07/02/2008 16:56:16
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Converting character 3:45 PM to 15 and 45 numeric
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01290609
Message ID:
01290609
Views:
54
Got an input of " 3:45 PM" and need to populate numeric fields with 15 and 45 respectively. The 45 is easy, but the hour I can't get to work. The input could be any valid time like " 8:10 AM" and "10:40 PM" or "12:00 AM" and "12:00 PM" and I want to get the 24-hour equivalent numeric values for the hours and minutes. Thanks!
Next
Reply
Map
View

Click here to load this message in the networking platform