I have been at it all afternoon.
I want it to look like "01:03" but I get 2 difficulties.
1.The only way I have been half successful is to use stringbuilder and then chop up the above into two segments. Is there an easier way?
2. 0103 comes out as 10:03
edit - the ToTime seems to throw away the zeros? eg 00:51 becomes 51?
string mystr = (ToTime(Time[1])).ToString(); StringBuilder leftbit = new StringBuilder(); leftbit.Append(mystr.Substring(0,2)+":"); leftbit.Append(mystr.Substring(2,2)); Print("My time" + leftbit.ToString());
Comment