Convert Seconds to HH:MM:SS in VB.Net

The solution for “Convert Seconds to HH:MM:SS in VB.Net” can be found here. The following code will assist you in solving the problem.

Dim intSeconds As Int64 = 32750
Dim timSpan As New TimeSpan(timSpan.TicksPerSecond * intSeconds)
Dim strTime As String = timSpan.Hours.ToString(“00”) & “:” & timSpan.Minutes.ToString(“00”) & “:” & timSpan.Seconds.ToString(“00”)

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts