Time

tk.unlimited

Active member
Joined
Apr 2, 2005
Messages
27
Programming Experience
1-3
Hey All
The current program i'm working on requires times to be displayed in seconds to two decimal places. I am currently declaring the time variadble as a decimal.. Can I declare the variable as something more appropriate?? and how do i code it??.. :confused:
Also.. I am displaying it in a listbox.. how do i got about displaying it as:

[Name]......................[Time]

Thanks
Tk Unlimited
 
Last edited:

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
Dim strTime as String
strTime = Now.Hours & ":" & Now.Minutes & "." & Now.Seconds

is how i'd do it
 
Top Bottom