Jan 5, 2004 #1 D Drstein99 Well-known member Joined Sep 26, 2003 Messages 283 Location Audubon, Nj How to I take the number of seconds (integer) and turn it into hours and minutes like "HH:MM" (string)?
How to I take the number of seconds (integer) and turn it into hours and minutes like "HH:MM" (string)?
Jan 5, 2004 #2 PlausiblyDamp Administrator Joined Sep 4, 2002 Messages 6,155 Location Lancashire, UK User Rank *Expert* quick and easy way is to use a TimeSpan Code: Dim ts As TimeSpan ts = TimeSpan.FromSeconds(<number of seconds here>) MessageBox.Show(ts.ToString())
quick and easy way is to use a TimeSpan Code: Dim ts As TimeSpan ts = TimeSpan.FromSeconds(<number of seconds here>) MessageBox.Show(ts.ToString())
Jan 5, 2004 #3 D Drstein99 Well-known member Joined Sep 26, 2003 Messages 283 Location Audubon, Nj perfect. thanks