Add Hours and Minutes the easy way !

  • Thread starter Thread starter The Fantom
  • Start date Start date
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
 
Back
Top