I'm using C++ Builder 6

I'm trying to convert a string in the form "12:25", which represents a time of day, to minutes. So in this case "12:25" would become 745.

I've never done anything like this, and I can't seem to get anything working. I'm sure its something extremely simple.

I also need to convert a time in minutes to a time string, so 745 minutes would return "12:25", but I will attemp to do this part myself provided someone can assist me with the first part.

Thanx for any help!