DateTime.TimeFormat = "HH:mm"
Dim lbl1 As Label
lbl1.Initialize("")
lbl1.Text = DateTime.Time(DateTime.Now)
Dim startTime As String = "10:00"
Dim endTime As String = "12:00"
If DateTime.TimeParse(lbl1.Text) > DateTime.TimeParse(startTime) And DateTime.TimeParse(lbl1.Text) < DateTime.TimeParse(endTime) Then
Log($"Yes, you are between ${startTime } and ${endTime}"$)
Else
Log($"NO, you are not between ${startTime } and ${endTime}"$)
End If