Converting seconds to HH:MM:SS

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
1 post Page 1 of 1
Contributors
User avatar
AnoPem
VIP - Donator
VIP - Donator
Posts: 441
Joined: Sat Jul 24, 2010 10:55 pm

Converting seconds to HH:MM:SS
AnoPem
This tutorial will teach you how to convert seconds to hour minutes and seconds

You will need 1 label and 1 button
add the code below to the button

heres the code
Code: Select all
        Dim count = TimeSpan.FromSeconds(150)
        Label1.Text = String.Format("{0:hh\:mm\:ss}", count)
Image

Add this code to your button or whatever and change the value in FromSeconds to the seconds you want it to show as hours minutes and seconds
https://t.me/pump_upp
1 post Page 1 of 1
Return to “Tutorials”