Question : Creating Time Value

Is it possible to take three values (i.e. 11, 30, AM) and create a Time value = 11:30 AM, if so how?

Answer : Creating Time Value

This is one way...

        Dim hour As Integer = 11
        Dim minute As Integer = 30
        Dim ampm As String = "AM"
        Dim time As DateTime = DateTime.Parse(hour & ":" & minute & " " & ampm)

Wayne
Random Solutions  
 
programming4us programming4us