I have a time as a string saved as HoursMinutes example 1642 (16:42) and I tried to convert it to date as Hours:Minutes with following code:
Dim dt As Date
Dim s As String
s = "1642"
dt = CDate(Format(s, "00:00"))
but the result is: 00:00 instead of 16:42
Any ideas?