Click here to Skip to main content
15,917,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i need a vb.net code for convert a minute to valid hr:min:sec format
if i put 80 i want to return 1:20:00 please help...
Posted

Try this one:
VB
Dim minutes As Integer = 80
        Dim ts As New TimeSpan(0, minutes, 0)
        Dim s As String = String.Format("{0}:{0}:{0}", ts.TotalHours, ts.TotalMinutes, ts.TotalSeconds)
 
Share this answer
 
 
Share this answer
 
 
Share this answer
 
Comments
harikrishnanmb 26-Aug-13 2:17am    
but i want it in date format
[no name] 26-Aug-13 3:10am    
In your question did you mentioned that..??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900