How to transform a string TimeDate (D23: 59: 59-1-12 / 12/12)

How to transform a string with time / date TimeDate (D23:59:59-1-12/12/12) received via rs232 in:
int h = 23;
int m = 59;
int s = 59;
....

Please post the rest of your code.

How are you storing this string?

maybe this link can help you: