Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Category:
Coding, syntax & commands
Title:
Converting character 3:45 PM to 15 and 45 numeric
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only