Link to home
Start Free TrialLog in
Avatar of Todd MacPherson
Todd MacPhersonFlag for Canada

asked on

How do I extract minutes from a time count?

I have a textbox called txtTurn with, for example, 5:12 where 5 represents hours and 12 represents minutes

I need code to extract the minutes portion of 12 to put it in a textbox called txtMin. I have no idea how to do that. If it matters it could show as 05:12 or just 5:12 depending on the user.

Thanks

PBLack
ASKER CERTIFIED SOLUTION
Avatar of peter57r
peter57r
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Todd MacPherson

ASKER

Both solutions work but I like the first one better.

Thanks