I have a collection of time records in a database in the format '09: 51: 06 '(hour, minute, second).
I have a query that retrieves a bunch of these times from a database, but I only need this link.
How can I get rid of the rest of the string and declaration in just an hour in an array? So in the above example, I just want to keep "09".
I studied the explosions and substrings, but did not seem to understand.
Thank.
source
share