How to convert seconds into hh:mm:ss in VB.NET

1 Answer

0 votes
Imports System

Public Class Program
	Public Shared Sub Main()
        Dim time As TimeSpan = TimeSpan.FromSeconds(19208)
		
        Dim str As String = time.ToString("hh\:mm\:ss")
		
        Console.WriteLine(str)
    End Sub
End Class



' run:
'
' 05:20:08
'

 



answered May 1, 2022 by avibootz

Related questions

1 answer 148 views
148 views asked May 1, 2022 by avibootz
1 answer 110 views
1 answer 164 views
1 answer 170 views
1 answer 133 views
1 answer 134 views
1 answer 141 views
...