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
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
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
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)

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
1 post
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023