the example i could found in the Internet only add up hour and minutes.
string hour1="48:40";
string hour2 = "45:35";
TimeSpan ts = new TimeSpan(int.Parse(hour1.Split(':')[0]),int.Parse(hour1.Split(':')[1]),0);
TimeSpan ts1 = new TimeSpan(int.Parse(hour2.Split(':')[0]),int.Parse(hour2.Split(':')[1]),0);
TimeSpan total = ts + ts1;
and what does the [1] and [0] means? thanks

New Topic/Question
Reply




MultiQuote






|