T The Fantom Mar 29, 2004 #1 How do I add to Hours and Minutes in VB.NET i.e "12:35" + "12:30" = 25:05
C Cor Mar 29, 2004 #2 Hi Fantom, I would probably use this Dim a As New TimeSpan(0, 12, 35, 0) Dim b As New TimeSpan(0, 12, 30, 0) Dim c As New TimeSpan c = a.Add(b) MessageBox.Show(c.ToString & " or " & _ CInt(c.TotalHours).ToString _ & ":" & c.Minutes.ToString("00")) I hope this helps? Cor
Hi Fantom, I would probably use this Dim a As New TimeSpan(0, 12, 35, 0) Dim b As New TimeSpan(0, 12, 30, 0) Dim c As New TimeSpan c = a.Add(b) MessageBox.Show(c.ToString & " or " & _ CInt(c.TotalHours).ToString _ & ":" & c.Minutes.ToString("00")) I hope this helps? Cor