M Mohamed New member Joined Dec 5, 2006 Messages 3 Programming Experience Beginner Dec 6, 2006 #1 Good Mornning Every Body i need to Create Function that Convert integer to time format Example 120 mean 00:02:00 75 mean 00:01:15
Good Mornning Every Body i need to Create Function that Convert integer to time format Example 120 mean 00:02:00 75 mean 00:01:15
L lingsn Well-known member Joined Nov 16, 2006 Messages 287 Programming Experience Beginner Dec 6, 2006 #2 Try this: VB.NET: [SIZE=2][/SIZE][SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] ts [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] TimeSpan(75 * 10000000) MsgBox(ts.ToString()) [/SIZE] Upvote 0 Downvote
Try this: VB.NET: [SIZE=2][/SIZE][SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] ts [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] TimeSpan(75 * 10000000) MsgBox(ts.ToString()) [/SIZE]
JohnH VB.NET Forum Moderator Staff member Joined Dec 17, 2005 Messages 15,800 Location Norway Programming Experience 10+ Dec 6, 2006 #3 It works by just specifying the seconds, too: VB.NET: Dim seconds As Integer = 120 Dim ts As New TimeSpan(0, 0, seconds) Upvote 0 Downvote
It works by just specifying the seconds, too: VB.NET: Dim seconds As Integer = 120 Dim ts As New TimeSpan(0, 0, seconds)
M Mohamed New member Joined Dec 5, 2006 Messages 3 Programming Experience Beginner Dec 7, 2006 #4 thank you for helping me for every one help me Upvote 0 Downvote