I am trying to populate a listview with all the hours of the day in 30 minute intervals.
I can doing very basically from 0 to 24 with the following code:
Private Sub CreateTimeStep() For i = 0 To 25 Step 0.5 lstDays.Items.Add(i) Next End Sub
but what i would like to do is have it display in 24 hour format e.g. 00:00, 00:30 ...etc
I have tried using the date.time variable but it just doesnt work.